-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
fortawesome module throws error on runtime #1480
Comments
|
@littlepine, did you get chance to try out the latest version? |
@vishal423 thank you very much for your response. Let me test it later. |
Oh, sorry, I just figure out the version I am using is already Here I also attach my .yo-rc for reference
And acturally I have applied my own fix on that, which is not quite alegant through. Here is what I did: I installed the "svelte-fa" package to the And I attach part of my patch here also for your reference:
If you don't mind, I can contribute on the fix. Again, thank you very much for the effort on creating this blueprint and it helps me a lot on learning svelte. |
@littlepine, it seems I missed the ESM change on the library side and hence the issue. Your help is much appreciated. I believe changing the import from While doing this, you can also combine multiple import statements like Please note this change needs to be done across all references on library side https://github.com/vishal423/jhipster-svelte-library/search?q=from+%27%40fortawesome%2Ffree-solid-svg-icons%27 |
When I generated a project with pagination, or other file which contains "fortawesome" icon, it will throw following error on console:
And it will cause the UI render fail.
Rendered output:
Steps to reproduce:
Testing environment:
"jhipster-svelte-library": "0.9.2",
node version : v16.18.0
The text was updated successfully, but these errors were encountered: