Closed
Description
🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
I am not sure.
Description
My Angular Application is crashing only on Safari when three.js is included.
The error message: SynthaxError: Left hand side of operaor '=' must be a reference.
Threre is a Stackoverflow Thread about this Issue:
https://stackoverflow.com/questions/66941849/chunkloaderror-in-angular-threejs-app-only-on-safari
🔬 Minimal Reproduction
I created this repo:
https://github.com/alexfriesen/angular-three-template
Which is deployed on:
https://alexfriesen.github.io/angular-three-template/
The same Code works just fine with Vite:
https://github.com/alexfriesen/retro
🔥 Exception or Error
SynthaxError: Left hand side of operaor '=' must be a reference.
🌍 Your Environment
Angular CLI: 12.0.3
Node: 14.17.0
Package Manager: npm 6.14.13
OS: linux x64
Angular: 12.0.4
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1200.3
@angular-devkit/build-angular 12.0.3
@angular-devkit/core 12.0.3
@angular-devkit/schematics 12.0.3
@angular/cli 12.0.3
@schematics/angular 12.0.3
rxjs 6.6.7
typescript 4.2.4
Anything else relevant?
Tested with Safari 14
I looks like it is related to ES6 Changes in Three.js