I updated quite a few dependency of my module and since then I run into an error when I execute yarn dev:prepare.
I already deleted dist, node_modules and have a fresh install with node 22 but the error is the same.
yarn dev:prepare
yarn run v1.22.22
$ nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground
ℹ Stubbing nuxt-api-shield 10:08:18
ℹ Cleaning dist directory: ./dist 10:08:18
[10:08:18] ERROR Cannot find module '/home/rrd/public_html/nuxt-api-shield/node_modules/jiti/node_modules/jiti/lib/jiti.mjs' imported from /home/rrd/public_html/nuxt-api-shield/node_modules/jiti/lib/jiti.mjs
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
at moduleResolve (node:internal/modules/esm/resolve:860:10)
at defaultResolve (node:internal/modules/esm/resolve:984:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:685:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:634:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:617:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:273:38)
at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:577:36)
at TracingChannel.tracePromise (node:diagnostics_channel:344:14)
at ModuleLoader.import (node:internal/modules/esm/loader:576:21)
at defaultImportModuleDynamicallyForModule (node:internal/modules/esm/utils:215:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:254:12)
at Object.nativeImport (node_modules/jiti/lib/jiti.mjs:9:30)
at nativeImportOrRequire (node_modules/jiti/dist/jiti.cjs:1:190382)
at jitiRequire (node_modules/jiti/dist/jiti.cjs:1:189876)
at import (node_modules/jiti/dist/jiti.cjs:1:199778)
at dist/module.mjs:1:215
at eval_evalModule (node_modules/jiti/dist/jiti.cjs:1:196325)
at node_modules/jiti/dist/jiti.cjs:1:194552
at async Function.import (node_modules/jiti/dist/jiti.cjs:1:199772)
at async rollup:done (node_modules/@nuxt/module-builder/dist/chunks/build.mjs:143:28)
at async rollupBuild (node_modules/unbuild/dist/shared/unbuild.BQ_Ce1-K.mjs:869:5)
at async _build (node_modules/unbuild/dist/shared/unbuild.BQ_Ce1-K.mjs:1318:7)
at async build (node_modules/unbuild/dist/shared/unbuild.BQ_Ce1-K.mjs:1138:5)
at async Object.run (node_modules/@nuxt/module-builder/dist/chunks/build.mjs:46:5)
at async runCommand (node_modules/citty/dist/index.mjs:316:16)
at async runCommand (node_modules/citty/dist/index.mjs:307:11)
at async runMain (node_modules/citty/dist/index.mjs:445:7)
I have tried to find out what causes this, but I have no clue how to go forward.
find node_modules -name "jiti" -type d
node_modules/.cache/jiti
node_modules/jiti
node_modules/mkdist/node_modules/jiti
The repo is https://github.com/rrd108/nuxt-api-shield, I did not managed to create a more minimal reproduction.
I updated quite a few dependency of my module and since then I run into an error when I execute
yarn dev:prepare.I already deleted
dist,node_modulesand have a fresh install with node 22 but the error is the same.I have tried to find out what causes this, but I have no clue how to go forward.
find node_modules -name "jiti" -type d node_modules/.cache/jiti node_modules/jiti node_modules/mkdist/node_modules/jitiThe repo is https://github.com/rrd108/nuxt-api-shield, I did not managed to create a more minimal reproduction.