NuxtN
Nuxt12mo ago
5 replies
bnason

Nuxt prepack weird error

I'm getting a weird error when running npm run release in my project. It seems to be coming from npm run prepack but if I run that directly it works fine! It's only as part of the multi command release.

[12:46:04 PM]  ERROR  Cannot find module /github.com/nasontech/nuxt-fetch-transforms/dist/runtime/github imported from file:///github.com/nasontech/nuxt-fetch-transforms, file:///github.com/nasontech/, file:///github.com/nasontech/nuxt-fetch-transforms/_index.js, file:///github.com/nasontech/node_modules

  at _resolve (node_modules/mlly/dist/index.mjs:2102:19)
  at resolveSync (node_modules/mlly/dist/index.mjs:2111:10)
  at resolvePathSync (node_modules/mlly/dist/index.mjs:2121:24)
  at resolvePath (node_modules/mlly/dist/index.mjs:2125:28)
  at Object.resolveId (node_modules/@nuxt/module-builder/dist/chunks/build.mjs:108:40)
  at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
  at async PluginDriver.hookFirstAndGetPlugin (node_modules/unbuild/node_modules/rollup/dist/es/shared/node-entry.js:25444:28)
  at async resolveId (node_modules/unbuild/node_modules/rollup/dist/es/shared/node-entry.js:24117:26)
  at async ModuleLoader.resolveId (node_modules/unbuild/node_modules/rollup/dist/es/shared/node-entry.js:24531:15)
  at async Object.resolveId (node_modules/unbuild/node_modules/@rollup/plugin-commonjs/dist/es/index.js:588:10)
Was this page helpful?