question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 8+ es2015 support (qrcode rewrite)

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

12reactions
Cordobocommented, Dec 29, 2019

Tada, Version 2.0.0 is out - thank my wife and my newborn son 😃

2reactions
songokudbzcommented, Dec 20, 2019

All I want for Christmas is … for this fix to be made available … 🎄

Read more comments on GitHub >

github_iconTop Results From Across the Web

qrcode - npm
Support for multibyte characters isn't present in the initial QR Code standard, but is possible to encode UTF-8 characters in Byte mode. QR...
Read more >
angular-qrcode - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
Read more >
Upgrade to Angular 8: Changing the target to "es2015" in ...
I am using Angular8, Typescript 3.4.5 and node 12.4.0. What am I doing wrong? My tsconfig.json: { "angularCompilerOptions": { ...
Read more >
Using with Angular CLI - Smart HTML Elements
Angular CLI documentation. ... Qrcode. ScrollBar. Slider. Splitter. SwitchButton. Sortable. Tabs. Tank. TextBox. TimePicker ... Notification Angular Service.
Read more >
ncaught referenceerror: global is not defined - You.com | The search ...
This file includes polyfills needed by Angular and is loaded before the app. ... Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found