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.

doesn't work with ng build or ng build --prod

See original GitHub issue

this lib is amazing i coded all my stuff and everything worked fine till the time i was testing on localhost so after finishing my code i deployed my app to website and it doesn’t work there and no errors in console

following are my code work space configurations

`Angular CLI: 7.3.9 Node: 8.12.0 OS: win32 x64 Angular: 7.2.15 … animations, common, compiler, compiler-cli, core, forms … language-service, platform-browser, platform-browser-dynamic … router

Package Version

@angular-devkit/architect 0.13.9 @angular-devkit/build-angular 0.13.9 @angular-devkit/build-optimizer 0.13.9 @angular-devkit/build-webpack 0.13.9 @angular-devkit/core 7.3.9 @angular-devkit/schematics 7.3.9 @angular/cli 7.3.9 @angular/fire 5.2.1 @ngtools/webpack 7.3.9 @schematics/angular 7.3.9 @schematics/update 0.13.9 rxjs 6.3.3 typescript 3.2.4 webpack 4.29.0`

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
Cordobocommented, Jun 25, 2019

Hi @bkimminich , I’m actively working on a version without this error, meanwhile a temporary workaround has to be applied, es2015 as target does not work yet for production builds, see here:

https://github.com/Cordobo/angularx-qrcode#install-160-with-angular-8

You could although checkout the sample repo from above, which doesn’t throw the this._android error with angular 8.

HTH

3reactions
Cordobocommented, Jul 16, 2019

Hi @frabanca,

Please use the workaround mentioned above until a refactored version is available:

Replace: "target": "es2015" with "target": "es5"

Closing this, as I’m actively working on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng build --prod is not working properly? how to check this?
i have one angular cli application. If i run that using ng serve command, it works fine.
Read more >
Angular CLI ng build --prod Doesn't Work #163 - GitHub
Hello. It seems like ng build --prod flag doesn't work in this package.json: "scripts": { "ng": "ng", "gulp": "gulp", "start": "run-p \"gulp ...
Read more >
Angular `ng build --prod` Error - Medium
You built a library, and tried to use it in a project. When building with --prod you see this unhelpful error: 'Unexpected value...
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
How to bundle an Angular app for production? - GeeksforGeeks
Run ng build command in Angular CLI. ng build --prod. To get the preview of the application, run the following command: ng serve...
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