-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Uncaught SyntaxError: Unexpected token export #543
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
Comments
@maxmumford hmm, this is undoubtedly due to the change in the latest release that ships ES modules at the project root instead of CommonJS. But the release does include a UMD bundle, which is referenced from the Summoning WebPack experts @robwormald @TheLarkInn or @gdi2290 any idea what could be going wrong here? |
@jeffbcross I believe it's because of a simple typo. |
Ahh, yes. I believe @davideast has fixed or is fixing that.
|
So the package.json I see above is webpack 1. Webpack one will only resolve from main field. Where v2 will resolve from browser field, etc. I haven't finished reading issue but dropping immediate impressions. |
Looks like #534 might provide a fix for this, but we're waiting for the author to sign the CLA |
Facing the same issue. |
@siriscac I'm deploying an MVP this week so if it's not merged by then I'll probably fork the PR and use that until it's been merged. I'll update this thread with what I finally do. |
I couldn't wait any longer for for committer of PR #534 to sign the CLA so I opened my own PR here: #599. In the meantime while that's merged, I found a workaround that let me deploy my project on Heroku today:
Feel free to use angularfire2-cocept, I'll probably rebase it every now and then, but as soon as the fix in PR #599 or #534 is merged I'll switch back to angularfire2. Edit: To get round that, I have released a new version, 2.0.0-beta.6, which is a fork of [email protected] with the package.json fix added. So if you do use angularfire2-cocept, know that [email protected] is a fork of angularfire2@962b37dce072204e7909bc912434518f3ce1ae09, whereas [email protected] is a fork of [email protected] ............. slightly messed up I know but it's just temporary 😅 |
Just to let everybody know, #599 has now been merged so we'll have it on master or the next release. Thanks everybody |
I've experienced the same error with script loader: Uncaught SyntaxError: Unexpected token export /* ////////////////// Any ideas? |
me also have the same issue , |
After deploying my app (that works fine locally) onto Heroku I get the following error in the console when loading main.bundle.js:
Uncaught SyntaxError: Unexpected token export
Here's the line where the error originates (angularfire2/index.js):
Here's my package.json:
Here's my webpack config:
and my app.js
Any idea what's causing this?
The text was updated successfully, but these errors were encountered: