-
Notifications
You must be signed in to change notification settings - Fork 20
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
Cannot import from 'meteor/accounts-base' - Uncaught SyntaxError: Unexpected token 'default' #8
Comments
I'm having the same issue. It looks like module re-exports are not catching all default exports and letting And probably again here: |
@red-meadow @ThaumRystra you just need to remove the References: |
Meteor appears to be happy with statements like
But I am seeing in other place (eg Storybook) that it wants the declaration and default export to be done separately So in this case
And otherwise if you are doing
You can just do it like this:
Or if you want, it can be done without a local variable in a one-liner
|
I have a working example with Vite 4 and Meteor 2.10.0 here diavrank/theory-swe#5 |
Confirmed this fixed the issue for me but I also had to remove it from my server part. |
Update packages - fix splash screen hanging, and migrate stub validation to Vite config
@Akryum , thank you very much for quickly fixing previous issues. Unfortunately, I've found some more. Apart from that, everything works great. I've managed to run a huge Svelte + TailwindCSS project.
The issue is described in the title.
The text was updated successfully, but these errors were encountered: