Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.output/server/node_modules/node-fetch-native/dist/polyfill.mjs' #526

Closed
issue-up bot opened this issue Sep 21, 2022 · 0 comments · Fixed by #529 or #578

Comments

@issue-up
Copy link

issue-up bot commented Sep 21, 2022

   Forwarded from downstream issue:


Environment

Nuxi 3.0.0-rc.12-27729267.0640a6c


  • Operating System: Darwin
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.12-27729267.0640a6c
  • Nitro Version: 0.5.4-27726613.640c2b7
  • Package Manager: pnpm@7.9.0
  • Builder: vite
  • User Config: ssr, app, css, buildModules, build, nitro, runtimeConfig
  • Runtime Modules: -
  • Build Modules: nuxt-windicss@2.5.1

Reproduction

I can provide a reproduction if required ... but this seems to be happening on both rc-11, rc-12 and latest ...

Describe the bug

After running pnpm run build on my project, I am seeing the following stack trace when starting the node server (either using node ./server/index.mjs or pnpm preview) ...

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/michael/Developer/observerly/sirius/apps/www/.output/server/node_modules/node-fetch-native/dist/polyfill.mjs' imported from /Users/michael/Developer/observerly/sirius/apps/www/.output/server/index.mjs
    at new NodeError (node:internal/errors:371:5)
    at finalizeResolution (node:internal/modules/esm/resolve:418:11)
    at moduleResolve (node:internal/modules/esm/resolve:983:10)
    at defaultResolve (node:internal/modules/esm/resolve:1080:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
    at link (node:internal/modules/esm/module_job:78:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant