-
Notifications
You must be signed in to change notification settings - Fork 4
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
failed to load module for ssr: /node_modules/svelte-flagpack/src/Flag.svelte #7
Comments
@haruzinh0 Thank you for letting us know that you are experiencing issues with Svelte Flagpack right now. Could you tell us some more information about the environment that you experience this issue in? This will help us reproduce the issue and solve it sooner. We have added this issue to our backlog and will let you know when we have resolved the issue. |
Sup! i just followed the README. step by step. when i import Flag and try to use any flag the error happens (im using sveltekit) |
any update? |
Same here... 😞 |
The current implementation of Svelte is not working, this is because we don't include Flag.svelte in the output file. This leads to an issue as the file is not defined, however the new attempt also doesn't work for the following reasons: - Will require users to install SASS into their codebase, which isn't desirable - Is seemingly unable to resolve the files that are included in the dist folder. - This code is uncompiled, which may or may not be desirable Relates to: #7
Apologies for the late response, at the moment we have no further update. We have taken a look at the issue and have identified the cause of the problem. But at this moment we have not found a suitable fix yet. As we are also an agency, we have been very busy lately and thus have not been able to put time into solving this issue. For that same reason we have no estimated time for a fix, however we are more then happy to accept pull requests to this repository that would resolve the issue. We have attempted a solution that would include the component in the dist folder. This resolves the error mentioned above.
The work for this has been done in |
tip: For those who need flags in code (until this bug will be fixed) is there: flag-icon-css package ( https://github.com/lipis/flag-icons ) ... just add this to your main scss file: |
any update for sveltekit? |
Still a problem |
It looks like the package/npm module isn't including the In addition, the Flag.svelte component has some errors:
I can confirm that copying the |
I'd also love to use them! Anyway, I hope a fix gets released very soon! 🙏 |
Seems like this may be part of what is needed once this package is updated to support svelte >=4: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition |
failed to load module for ssr: /node_modules/svelte-flagpack/src/Flag.svelte
cant use the package :(
The text was updated successfully, but these errors were encountered: