windicss / nuxt-windicss

🍃 Windi CSS for Nuxt ⚡
331 stars 24 forks source link

Cannot find type definition file for 'nuxt-windicss' #146

Open lewebsimple opened 2 years ago

lewebsimple commented 2 years ago

Describe the bug It seems typings are not loaded correctly inside VSCode when adding nuxt-windicss in compilerOptions' types.

To Reproduce Steps to reproduce the behavior:

  1. Initialize a new nuxt3 project npx nuxi init nuxt3-repro
  2. Add nuxt-windicss as devDependency and to buildModules
  3. Configure types in tsconfig.json as specified in the README
  4. Open nuxt.config.ts and see following error:
Cannot find type definition file for 'nuxt-windicss'.
  The file is in the program because:
    Entry point of type library 'nuxt-windicss' specified in compilerOptionsts

Expected behavior nuxt.config.ts should not display any error and windicss options should have intellisense / autocompletion.

thomas4Bitcraft commented 2 years ago

I had the same issue - resolved it by using "./node_modules/nuxt-windicss/dist",