-
Notifications
You must be signed in to change notification settings - Fork 12k
1.5.0 : let is a reserved identifier in FF logs #8326
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
That seems to indicate one of you vendor libraries is using es2015 code. Can you try to identify which library that is, or offer a repro so we can investigate please? |
Exact same problem on a new blank project using angular-cli 1.6.0 tried downgrade to 1.5.0-rc.2 ... I'm now getting in console Angular CLI: 1.5.0-rc.2 angular/cli: 1.5.0-rc.2 Chrome is fine. Something is obviously very wrong on my setup. |
@filipesilva I can confirm that it happens on a clean project, as @maturecheese described. Tested with fresh project & FF 36.0.1
|
FF 42 also affected - with newer CLI
|
I tested on Firefox 56 just now and it seems ok. I think this might be related to the how You should be able to test this by doing |
Browser compatibility for let on Firefox:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let |
Just ran into this myself. I can also confirm that 1.4.9 works and 1.5.0 does not with firefox 31, 38, and 45. 52+ seems to works just fine for me. I also see this issue regardless of whether it's the dev-server or not. building for production with or without aot still causes this issue for me. @filipesilva Any ideas on when we might see a fix? What is blocking it? |
Any news on this? I'm working on a project that is required to work on FF 38 and it is currently broken. |
Using 1.6.3, creating a new project with ng new, then attempting to run it on FF 36 gives me the same "SyntaxError: let is a reserved identifier vendor.bundle.js:..." error as described. Doing a production build and serving with http-server gives me "TypeError: this is undefined" in FF 36. |
@filipesilva I can confirm that running from However, @skuby2 is also correct in that doing a production build (with or without aot) and serving up, for me with tomcat, I get a Of course when I open up |
I think I may have found the
Looks like it's in |
Confirmed that running ng serve --prod with @angular/cli@1.6.7 on a brand new project still have issue on Firefox 38: |
Any update on this? At least a workaround, or even fallback to catch this error? |
Yes, my comment on #9340 seems to be a workaround |
Closing as the original problem seem to have been addressed meanwhile. #9340 is addressed too. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Repro steps.
I upgraded my ng project from ng-cli 1.4.9 to 1.5.0 and get the following error message in (at least this version) firefox 36 and dev environement, running ng serve :
SyntaxError: let is a reserved identifier vendor.bundle.js:24:0
This results in a blank page
Switching back to 1.4.9 works fine.
This error seems to happen with webpack as there is no error when testing in other environment than dev
The log given by the failure.
SyntaxError: let is a reserved identifier vendor.bundle.js:24:0
Mention any other details that might be useful.
The last working version is 1.5.0-rc.2.
With the rc3 upgrade, the error happens.
Here is --version using rc3 :
Here is --version using rc2 :
The text was updated successfully, but these errors were encountered: