question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SSR] Error transforming C:/XXXXXXXXXXXXXX/node_modules/nuxt3/dist/app/bootstrap.mjs: Faile d to resolve import "#build/plugins" from "node_modules\nuxt3\dist\app\bootstrap.mjs". Does the file exist?

See original GitHub issue

Environment

Nuxt CLI v3.0.0-27367970.e0fec80 16:20:55 Nuxt project info: 16:20:58


  • Operating System: Windows_NT
  • Node Version: v16.13.0
  • Nuxt Version: 3.0.0-27367970.e0fec80
  • Package Manager: npm@8.1.1
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Clean installation of the nuxt 3

Describe the bug

[SSR] Error transforming C:/xxx/node_modules/nuxt3/dist/app/bootstrap.mjs: Faile d to resolve import “#build/plugins” from “node_modules\nuxt3\dist\app\bootstrap.mjs”. Does the file exist?

Additional context

No response

Logs

[SSR] Error transforming C:/Users/akind/Documents/develop/wmm2/node_modules/nuxt3/dist/app/bootstrap.mjs: Faile
d to resolve import "#build/plugins" from "node_modules\nuxt3\dist\app\bootstrap.mjs". Does the file exist?

  at formatError (node_modules\vite\dist\node\chunks\dep-48c3e8a4.js:36769:46)
  at TransformContext.error (node_modules\vite\dist\node\chunks\dep-48c3e8a4.js:36765:19)
  at normalizeUrl (node_modules\vite\dist\node\chunks\dep-48c3e8a4.js:73694:26)
  at async TransformContext.transform (node_modules\vite\dist\node\chunks\dep-48c3e8a4.js:73834:57)
  at async Object.transform (node_modules\vite\dist\node\chunks\dep-48c3e8a4.js:36985:30)
  at async doTransform (node_modules\vite\dist\node\chunks\dep-48c3e8a4.js:52057:29)

  m.default is not a function
  at file:///XXXXXXXXX/.nuxt/dist/server/server.mjs:10:126
  at async renderToString (file:///XXXXXXXXX/node_modules/vue-bundle-renderer/dist/index.m
js:247:19)
  at async renderMiddleware (file:///XXXXXXXXX/.nuxt/nitro/index.mjs:191:20)
  at async handle (file:///XXXXXXXXX/node_modules/h3/dist/index.mjs:601:19)
m.default is not a function
  at file:///XXXXXXXXX/.nuxt/dist/server/server.mjs:10:126
  at processTicksAndRejections (node:internal/process/task_queues:96:5)
  at async renderToString (file:///XXXXXXXXX/node_modules/vue-bundle-renderer/dist/index.m
js:247:19)
  at async renderMiddleware (file:///XXXXXXXXX/.nuxt/nitro/index.mjs:191:20)
  at async handle (file:///XXXXXXXXX/node_modules/h3/dist/index.mjs:601:19)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
pi0commented, Jan 13, 2022

Should be fixed in the latest npm publish. Please use npx nuxi upgrade --force.

1reaction
pi0commented, Jan 13, 2022

Seems related to recent vite 2.7.11 regression (https://github.com/nuxt/framework/issues/2706) releasing a hotfix shortly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`nuxi dev` does not work properly · Issue #4255 · nuxt/framework
Does the file exist? ERROR Failed to resolve import "vue" from "virtual:C:\Users\kecrily\Desktop\nuxt-app\.nuxt\components.plugin.mjs".
Read more >
Nuxt 3 Failed to resolve import dist.plugin.26632bfc.js. Does ...
nuxt/plugins/client.mjs". Does the file exist? As you can see, I have double path /Users/guillaume/Desktop/Sites/Perso ...
Read more >
rollup failed to resolve import "react-dom/client" - You.com
Getting This problem Failed to resolve import "react-dom/client" from "src\main.jsx". Does the file exist? this is my main.jsx file import React from 'react' ......
Read more >
What is a "failed to create a symbolic link: file exists" error?
if ~/Documents/saga exists and is a directory, the symbolic link will be ~/Documents/saga/saga..doc (are you sure about the double dot?)
Read more >
Common Error Details - Snowpack
Package “[name]” not found. Have you installed it? I'm trying to import a file from npm; I'm trying to import a local .js...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found