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

fix: wrap dynamic import in prerender to fix windows build failure #134

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

alex-key
Copy link
Contributor

@alex-key alex-key commented Apr 20, 2022

πŸ”— Linked issue

nuxt/nuxt#13731

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This fixes a bug, when a fresh install of nuxt3 on Windows can not produce a build. It is failing with an error related to files paths. It seems like all dynamic imports should be wrapped with pathToFileURL to work properly on Windows.
Also fixed a minor bug with configuration. Cloudflare test failed on Windows.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@aesdotjs
Copy link

We really need this to be able to generate static pages with nuxt3 on Windows 10

@pi0 pi0 changed the title fix: wrap dynamic import in prerender to fix Windows build failure fix: wrap dynamic import in prerender to fix windows build failure Apr 22, 2022
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! And sorry for late merge!!

@pi0 pi0 merged commit 2be8aaf into unjs:main Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants