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

Nuxt 3 error when adding module #51

Closed
luabraggion opened this issue Nov 8, 2022 · 4 comments
Closed

Nuxt 3 error when adding module #51

luabraggion opened this issue Nov 8, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@luabraggion
Copy link

Version

nuxt-security: 0.6.0
nuxt: 3.0.0-rc.13

Reproduction Link

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'
at new NodeError (node:internal/errors:387:5)
at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1017:11)
at defaultResolve (node:internal/modules/esm/resolve:1097:3)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:837:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36)

@luabraggion luabraggion added the bug Something isn't working label Nov 8, 2022
@Baroshem
Copy link
Owner

Baroshem commented Nov 8, 2022

Probably related to #42

@Baroshem
Copy link
Owner

Baroshem commented Nov 9, 2022

@luabraggion

Could you test any of the last recommendations from the linked task and see if that works for you?

I cannot verify that as I dont have a Windows computer and for Mac and Linux it works just fine.

@maxime-ducoroy
Copy link

Hello,

I have the same problem. and yes it is related to #42.

I searched the internet, and the Playwright framework had the same error. Maybe you can use the solution to correct on your project microsoft/playwright#12615

@Baroshem
Copy link
Owner

Closing as it is a duplicate of #42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants