My nuxt app with prismic was working fine several days ago but after the update, it seems to be broken. No error on the console but in the IDE, tons of errors now. even when you create a new prismic app with nuxt using the starter templates, i am getting same trouble.
Phil
(Phil Snow)
March 4, 2024, 2:07pm
3
Hi @virexcircle.dev ,
It seems someone reported this issue directly on the GitHub for this SDK.
opened 12:40AM - 29 Feb 24 UTC
bug
### Versions
- nuxt: 3.10.3
- @nuxtjs/prismic: 3.1.0
- node: 20.9.0
### … Steps to reproduce
- Create a new repo with the latest Nuxt
- Follow the steps on https://prismic.nuxtjs.org/get-started
### What is Expected?
No Typescript errors occur.
### What is actually happening?
Typescript complains that `prismic` is not a known key for the option argument to `defineNuxtConfig`.
### Suggestion solution
Add a step in the Getting Started documentation between steps 1 and 2 that suggests running nuxt's `postinstall` task. For me this was `npm run postinstall`, which in turn calls `nuxt prepare`, regenerating the types and fixing the error.
This will be the best place get updates for the problem.
I'll ping the creator @lihbr so they know what's going on
kgonzales1193
(Kevin Paul Sarin Gonzales)
March 5, 2024, 2:57am
4
that didn't fix the issue still for me. I follow the suggested step from github but nothing happened.
Phil
(Phil Snow)
March 6, 2024, 11:19am
5
Hi Team,
It seems this issue started from upgrading to the latest Nuxt, right? Can you try reverting to the previous version you were on to see if that helps?
Thanks.
kgonzales1193
(Kevin Paul Sarin Gonzales)
March 7, 2024, 7:29am
6
Hi Phil. I tried using the template for nuxt which has a 3.8.0 nuxt verion and i am getting the same error for types.
Phil
(Phil Snow)
March 27, 2024, 10:41am
7
Hey @kgonzales1193 ,
You've received a reply to the issue on Github:
opened 12:40AM - 29 Feb 24 UTC
closed 09:44AM - 26 Mar 24 UTC
question
documentation
### Versions
- nuxt: 3.10.3
- @nuxtjs/prismic: 3.1.0
- node: 20.9.0
### … Steps to reproduce
- Create a new repo with the latest Nuxt
- Follow the steps on https://prismic.nuxtjs.org/get-started
### What is Expected?
No Typescript errors occur.
### What is actually happening?
Typescript complains that `prismic` is not a known key for the option argument to `defineNuxtConfig`.
### Suggestion solution
Add a step in the Getting Started documentation between steps 1 and 2 that suggests running nuxt's `postinstall` task. For me this was `npm run postinstall`, which in turn calls `nuxt prepare`, regenerating the types and fixing the error.