-
Notifications
You must be signed in to change notification settings - Fork 104
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
Getting Vite error on when importing compile
#255
Comments
It is probably using the normal esm module which expects a node environment currently. There is a browser module, I don't know if there is a way to tell vite which to use. I am yet to add the new entrypoints to mdsvex but it does have a browser field. |
I got around this by using: |
Using proper ESM export paths might fix this. |
did you ever figure this out? |
@techydad05 Unfortunately not, I just went with a different solution entirely. |
Same issue here. Error |
Following https://gist.github.com/FbN/0e651105937c8000f10fefdf9ec9af3d vite build runs without problems. |
When including
import { compile } from 'mdsvex';
in a route I immediately get the following error:This happens without using
compile
anywhere and it immediately fixed when removing theimport
.Running Svelte Kit 1.0.0-next.103 with standard (for Kit so far) config.
The text was updated successfully, but these errors were encountered: