image
image copied to clipboard
vue-tsc error when using in monrepo
I currently trying to add the @nuxt/image module, but I get this error:
ERROR(vue-tsc) Cannot find module '#app/nuxt' or its corresponding type declarations. FILE /xxx/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@nuxt/image/dist/runtime/components/NuxtPicture.vue:38:28
I'm using a pnpm monrepo setup with separate packages (shared, app, web).
This is my web tsconfig.json:
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"paths": {
"@web/*": [
"./src/*"
],
"@shared/*": [
"../shared/src/*"
],
},
"moduleResolution": "Node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"include": [
"./.nuxt/nuxt.d.ts",
"./**/*.ts",
"./**/*.vue",
"./nuxt.config.ts",
"../shared/src/**/*"
]
}
Do you have any ideas whats wrong in my project?