Closed fornazaric closed 4 days ago
Got the exact same issue in this repository: https://github.com/Mockline/mockline/tree/mk-90
Same error here after upgrading typescript to 5.5.2. The error went away after downgrading typescript to 5.4.5
This allows the command to be run successfully, but the 'Could not map moduleDetection force is always the same
I just tried downgrading Typescript and now i have this error:
ERROR VirtualCode id must be lowercase: scriptFormat
at verifyVirtualCode (node_modules/@volar/language-core/index.js:230:19)
at Object.set (node_modules/@volar/language-core/index.js:127:29)
at node_modules/@volar/typescript/lib/node/proxyCreateProgram.js:76:42
at Object.get (node_modules/@volar/language-core/index.js:42:17)
at options.host.getSourceFile (node_modules/@volar/typescript/lib/node/proxyCreateProgram.js:113:59)
at findSourceFileWorker (node_modules/typescript/lib/typescript.js:122267:25)
at findSourceFile (node_modules/typescript/lib/typescript.js:122186:22)
at node_modules/typescript/lib/typescript.js:122135:24
at getSourceFileFromReferenceWorker (node_modules/typescript/lib/typescript.js:122104:28)
at processSourceFile (node_modules/typescript/lib/typescript.js:122133:7)
ERROR VirtualCode id must be lowercase: scriptFormat
I get the same
Could not map moduleDetection force
When following the quick start steps: https://nuxt.com/docs/guide/going-further/modules#quick-start
btw: downgrading to @nuxt/module-builder:^0.5.0
works
This is now resolved in mkdist
and should be fixed with a lockfile refresh.
Hello,
I've been running
@nuxt/module-builder
in version 0.5.5 for some time now, but when i tried updating to 0.8.0 the error written later popped up. I'm now upgrading to 0.6.0 only and face the same issueI already tried:
module.ts
fileHere's the error:
I tried changing my tsconfig, resetting it to the one in the starter app, but nothing changes.
I think the problem might come from the module definition file:
I also have a tsconfig file for the playground and one for the tests folder that use vitest.
Here's the main tsconfig file:
Thanks for your help !