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

Unable to build on Windows #232

Closed
4 of 5 tasks
weihongyu12 opened this issue Oct 20, 2022 · 9 comments
Closed
4 of 5 tasks

Unable to build on Windows #232

weihongyu12 opened this issue Oct 20, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@weihongyu12
Copy link

Version

module: @nuxtjs/html-validator@1.1.0
nuxt: 3.0.0-rc.12

Nuxt configuration

mode:

  • universal
  • spa

Additional information

- Operating System: `Windows_NT`
- Node Version:     `v16.18.0`
- Nuxt Version:     `3.0.0-rc.12`
- Nitro Version:    `0.6.0`
- Package Manager:  `yarn@1.22.19`
- Builder:          `webpack`
- User Config:      `srcDir`, `modules`, `head`, `imports`, `builder`, `build`, `hooks`, `webpack`
- Runtime Modules:  `@nuxtjs/tailwindcss@5.3.5`, `@vueuse/nuxt@9.3.1`, `@nuxtjs/html-validator@1.1.0`
- Build Modules:    `-`

Checklist

  • I have tested with the latest Nuxt version and the issue still occurs
  • I have tested with the latest module version and the issue still occurs
  • I have searched the issue tracker and this issue hasn't been reported yet

Steps to reproduce

On the Windows, initialize the project, then install and enable the '@nuxtjs/html-validator' module, then run the project's build command.

yarn build

What is expected?

If it is normal, it should be built successfully or HTML verification information should be given, and an exception should not be thrown.

What is actually happening?

A build exception was thrown: 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 'c:'

This exception is only thrown on Windows. MacOS and Linux don't have this problem.

image

@weihongyu12 weihongyu12 added the bug Something isn't working label Oct 20, 2022
@AndrewBogdanovTSS
Copy link

Getting the same issue

@danielroe
Copy link
Collaborator

Would you test with v1.1.1?

@weihongyu12
Copy link
Author

Still the same problem, here is the new console output log:

image

@AndrewBogdanovTSS
Copy link

I confirm that issue is still present with v.1.1.1
image

@ineshbose
Copy link

Facing this issue as well!

@weihongyu12
Copy link
Author

weihongyu12 commented Nov 24, 2022

Related to nuxt/nuxt#15249

@weihongyu12
Copy link
Author

weihongyu12 commented Nov 24, 2022

Related to Baroshem/nuxt-security#42

@danielroe
Copy link
Collaborator

danielroe commented Dec 6, 2022

upstream issue: nuxt/nuxt#15249

@danielroe danielroe reopened this Dec 6, 2022
@danielroe
Copy link
Collaborator

This should be resolved in @nuxtjs/html-validator@1.2.3. Let me know if not and I'll reopen.

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

4 participants