-
Notifications
You must be signed in to change notification settings - Fork 0
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
Can't import JS files with normal ESM syntax inside components #46
Comments
This is the only workaround I've found, using let look = {};
import('../js/Looks.js').then((m)=>{
const Looks = m.default;
look = new Looks();
}); |
const some = require('../some.js').default; Almost Also means file being imported needs |
This will likely and hopefully be fixed when the full fix for #42 is resolved. |
Pretty sure this another bug related to
svelte/register
.E.g., this throws an error:
which doesn't make sense, because we're not using
require()
.The text was updated successfully, but these errors were encountered: