nuxt-modules / prismic

Easily connect your Nuxt.js application to your content hosted on Prismic

Home Page:https://prismic.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

i tried creating a new repo run post install and yet, i am still getting the missing types.
image