vitesse-nuxt3 icon indicating copy to clipboard operation
vitesse-nuxt3 copied to clipboard

After I pnpm dev......

Open qaz74423 opened this issue 3 years ago • 6 comments

[nuxt] [request error] Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'e:' at new NodeError (node:internal/errors:371:5)
at defaultResolve (node:internal/modules/esm/resolve:1016:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40) at ModuleWrap. (node:internal/modules/esm/module_job:76:40) at link (node:internal/modules/esm/module_job:75:36)

qaz74423 avatar May 13 '22 08:05 qaz74423

did you run pnpm i before run the dev command?

portlek avatar May 13 '22 08:05 portlek

did you run pnpm i before run the dev command?

Of course,The first thing I pulled the project down was pnpm i

qaz74423 avatar May 13 '22 08:05 qaz74423

This is an issue with the experimental feature viteNode. To fix this error, change your nuxt config to the following:

  experimental: {
    reactivityTransform: true,
    // viteNode: true,
  },

You can track the issue here: https://github.com/nuxt/nuxt.js/issues/13980

mctweb avatar May 13 '22 19:05 mctweb

This is an issue with the experimental feature viteNode. To fix this error, change your nuxt config to the following:

  experimental: {
    reactivityTransform: true,
    // viteNode: true,
  },

You can track the issue here: nuxt/nuxt.js#13980

thank you!

qaz74423 avatar May 16 '22 03:05 qaz74423

Maby this feature need to be turned off in relise? because new project npx degit antfu/vitesse-nuxt3 my-nuxt3-app created this way, will fail from begining.

BITRU avatar May 26 '22 09:05 BITRU

This seems to be fixed: https://github.com/nuxt/nuxt.js/issues/13980

NexZhu avatar Sep 22 '22 09:09 NexZhu