NuxtN
Nuxt3mo ago
4 replies
ModernKiwi

Vue-TSC Error spam every time pnpm/npm dev is used in a new project.

Good afternoon,

I have tried to setup a new personal website for start a new project. After creating a new project using the
pnpm
/
npm
nuxt@latest
I then follow the documentation, I ran the following commands
install --save-dev vue-tsc typescript
,
nuxt typecheck
, and
nuxt prepare
. I have also added
typeCheck: true
in the c onfig and tried
typescriptPlugin
enabled and disabled.

Ive tried to search around for answers like I did with another issue I had a few days back but I have been unable to find any potential solutions to attempt. I am fairly clever in tech and IT in general, however, I feel out of my depths trying to resolve this issue and may be beyond my mental capabilities (disabilities), I would really appreciate some assistance with resolving this or direction towards solving this, thanks.

Here are the errors I am getting:

Multiple missing types like these.
 ERROR(vue-tsc)  Cannot find name 'Boolean'. Did you mean 'GLboolean'?
 FILE  undefined:

undefined

 ERROR(vue-tsc)  Cannot find global type 'CallableFunction'.
 FILE  undefined:

undefined


Missing files x2 (Second one often shows up multiple times when dev mode is kept running running)
 ERROR(vue-tsc)  File 'F:/Programming/WebDev/Personal-Website2/node_modules/vite-plugin-checker/dist/checkers/vueTsc/typescript-vue-tsc/lib/lib.dom.d.ts' not found.
  The file is in the program because:
    Library 'lib.dom.d.ts' specified in compilerOptions
 FILE  undefined:

undefined

 ERROR(vue-tsc)  File 'F:/Programming/WebDev/Personal-Website2/node_modules/vite-plugin-checker/dist/checkers/vueTsc/typescript-vue-tsc/lib/lib.dom.iterable.d.ts' not found.
  The file is in the program because:
    Library 'lib.dom.iterable.d.ts' specified in compilerOptions
 FILE  undefined:

undefined
image.png
image.png
Was this page helpful?