-
Notifications
You must be signed in to change notification settings - Fork 67
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
If you use the nuxt/icon module Build fails when the development server is on. #354
Comments
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a couple of templates for starting with a minimal reproduction: 👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
Hello, thank you for your hard work. I've created an example project where my GitHub repository is experiencing errors. The link is as below. https://github.com/devmini1203/nuxt-icon-generate-error-example As I've explained before
There are precautions. If an error like mine occurs after testing, I would appreciate it if you could answer it. Thank you always. |
We observe a similar bug here. When I build with
Thanks @devmini1203 for the tests ! |
Hello, thank you so much for sharing regarding the error I am experiencing. |
package manager : yarn
nuxt version : 3.13.2
@nuxt/icon version : latest
ide : vscode
ssr : false
Currently, I am developing a project with nuxt ssr false.
I need an icon, I installed @nuxt/icon and was developing it without any problems, and I found a problem with the build result not being produced when I proceeded with the generate command.
The error is as follows.
ERROR The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received 'file:///_entry.js'
at createRequire (node:internal/modules/cjs/loader:1514:13)
The argument 'filename' must be a file URL object, file URL string, or ab
solute path string. Received 'file:///_entry.js'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I'm curious about what the problem is. I've done a lot of tests
I found that the error occurred in the following case.
At the terminal of the vscode, first, run the development server using the yarn local.
yarn local => nuxt dev --port 3004 --dotenv .env.local
After that, open another terminal to perform the yarn generator:test.
yarn generate:test => yarn postinstall && nuxt generate --dotenv .env.test
This will not finish the build and will fail the build with the error message described above.
Shut down the development server terminal and use the generate command to build well without errors. :(
Of course, you can shut down the development server and generate it, but I decide that I can't shut down the development server, build it, and turn on the development server again, so I leave the issue like this.
I want to use this great module to complete the development.
I'd appreciate it if someone could help me.
The text was updated successfully, but these errors were encountered: