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

[BUG] Build fails if path contains non-ASCII characters #148

Closed
ExEr7um opened this issue Mar 28, 2024 · 2 comments
Closed

[BUG] Build fails if path contains non-ASCII characters #148

ExEr7um opened this issue Mar 28, 2024 · 2 comments

Comments

@ExEr7um
Copy link
Contributor

ExEr7um commented Mar 28, 2024

If path to project contains non-ASCII characters build fails.

I found out that it happens because of <style> block, if I remove it in Icon.vue and IconCSS.vue then build succeeds. I think it's not as issue with nuxt-icon in particular, probably upstream issue, but I failed to reproduce it without the module.

Reproduction

https://codesandbox.io/p/devbox/recursing-moon-q5nl7r

cd 🛠️
npm run build

You will get:

 ERROR  Nuxt Build Error: [vite:vue] Could not load /workspaces/workspace/\u{1F6E0}\uFE0F/node_modules/nuxt-icon/dist/runtime/Icon.vue?vue&type=style&index=0&scoped=e8d572f6&lang.css?inline&used: ENOENT: no such file or directory, open '/workspaces/workspace/\u{1F6E0}\uFE0F/node_modules/nuxt-icon/dist/runtime/Icon.vue'

Related issues

@ExEr7um
Copy link
Contributor Author

ExEr7um commented Mar 28, 2024

@danielroe can you look, please, if it's an upstream issue or not?

@danielroe
Copy link
Member

This isn't an issue with the nuxt-icon module - I can reproduce with a plain project + a component with scoped styles. It seems to be thrown by vite-plugin-vue, which is trying to load a file from the filesystem without converting the path back to the correct format.

I would suggest raising in https://github.com/vitejs/vite-plugin-vue. 🙏

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Mar 29, 2024
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

No branches or pull requests

2 participants