Getting Started documentation is missing types generation step
zrisher opened this issue · comments
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.
still didn't fix the problem for me after running npm run postinstall