-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
esm module throws error when running as a preview after successful build with @sveltejs/kit #3928
Comments
And if you serve it on the proper server it works fine? |
I tried packaging it with adapter-node which packages the svelte app as a serviceable node app and it breaks with the same error message during the time it is preparing the server script. Here's the error message
if I add
So the error comes from the server side script that is trying to use this components for |
I suggest Svelte Kit is not supported then, I recommend you to use Framework7-CLI instead |
the error comes from the server side script that is trying to use this components for ssr ohhh.. do you plan to support it as part of your roadmap? As I plan to use svelte kit for the purpose of my app. |
Is It a ESM packaging related issue!!! |
Supporting Svelte Kit is not in near future on a roadmap, it has some super weird mess with a way how it loads modules (which I encountered with my other libraries) |
hmm.. Thanks for your reply. |
I tried to fiddle around a bit as I really liked this ( After the server starts running, it throws |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. If this issue is still actual, please, create the new one. |
6.1.0-beta.6
@sveltejs/kit 1.0.0-next.136
chrome
codesandbox
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Throws following error
Expected behavior
it should run the framework on
preview
modeActual Behavior
Throws an error since esm module don't support importing directory
Additional context
I tried adding conditional exports inside
framework7/package.json
. But it throws following errorI am not too well versed with
esm
packaging, so could not make much progress here.The text was updated successfully, but these errors were encountered: