Angular 8+ es2015 support (qrcode rewrite)
See original GitHub issueHi there,
I open this issue to keep you updated about my ongoing efforts to provide es2015 support for Angular 8+.
Angular 8 changed the default target in tsconfig.json from es5 to es2015, which resulted in a build error when building with ng build (ng serve works as expected).
To follow the efforts, subscribe to this issue, I will update it from time to time.
Update 3: 29/12/2019 (29. Dec. 2019)
Version 2.0.0 is now available
Version 2.0.0 is now available for download and fixes the es5 issue in Angular 8+. A workaround is no longer needed.
TODOS:
- DONE: Update Documentation to reflect the changes
- DONE: Add a step-by-step guide to migrate from 1.x to 2.x
- TBD: Test against angular 9
- TBD: Test against Ivy compiler
- TBD: Update Demo App
- TBD: Install a working demo app
Update 2: 29/12/2019 (29. Dec. 2019)
I finished the transition to the new qrcode library and released a series of 2.0 alpha versions to npm. The code is still WIP, the API is not feature complete and there are a couple of breaking changes due to the underlying lib.
Update 1: 09/02/2019 (2. Sep. 2019)
I’m now working in my spare time for a while on a recursion error in the lib. I push my branch to github when this issue is fixed.
Workaround (no longer needed)
A temporary workaround is to set the target in your tsconfig.json from es2015 to es5:
"target": "es5"
Issue Analytics
- State:
- Created 4 years ago
- Reactions:17
- Comments:20 (7 by maintainers)
Top GitHub Comments
Tada, Version 2.0.0 is out - thank my wife and my newborn son 😃
All I want for Christmas is … for this fix to be made available … 🎄