nuxt-windicss icon indicating copy to clipboard operation
nuxt-windicss copied to clipboard

Cannot find type definition file for 'nuxt-windicss'

Open lewebsimple opened this issue 3 years ago • 1 comments

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.

lewebsimple avatar Dec 16 '21 03:12 lewebsimple

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

thomas4Bitcraft avatar Dec 20 '21 13:12 thomas4Bitcraft