Comments (10)
Ran into the same issue with Angular 8 today.
Steps to reproduce:
- Clone https://github.com/mpgo13/angular8-angularx-qrcode
- Run
ng build
- Run
cd dist/angular8 && python -m SimpleHTTPServer
- Browse to http://localhost:8000
Expected Result:
- QRCode visible
Actual Result:
- Script error as commented above
Note: Not reproducable with angular's dev server (ng serve
)
from angularx-qrcode.
Hi @mpgo13, thanks for your sample Repo, I have a look into it.
from angularx-qrcode.
A temporary workaround is to set the target in your tsconfig.json from es2015 to es5:
"target": "es5"
Source: angular/angular#30759 (comment)
from angularx-qrcode.
Hi @Cordobo, I've had this error and when searching the topic I ran into an interesting article:
Github article
Don't know if you've seen it but hope this helps you find a solution.
from angularx-qrcode.
Could you please provide a stripped down sample repo?
from angularx-qrcode.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from angularx-qrcode.
Seems like qrcode.js
gets loaded in strict mode. I opened an issue: angular/angular#30759
from angularx-qrcode.
Hi @mpgo13 thanks for your minimal repo, I get this fixed as soon as possible.
from angularx-qrcode.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from angularx-qrcode.
I've updated my tsconfig.json, this is working for me:
"target": "es5"
I've used es2015 before.
from angularx-qrcode.
Related Issues (20)
- QR-Code not displayed in Google Chrome when center image is defined HOT 3
- qrCode not working in dialog window! HOT 4
- [email protected] (Angular v8) should have a callback for returning the url when is created HOT 1
- Accidentally pulling in @types/node HOT 7
- Support for Angular 16 HOT 5
- How many string can [qrdata] hold? HOT 1
- angular 16.1.8 declare var AbortSignal: error HOT 4
- When i scan the QR code the accents are replaced with chinese characters HOT 1
- Is it possible to get the Base64 image string for a QR code in a TS file? HOT 3
- qrcode types missing HOT 7
- When i initialize the QR code,Chrome console show : Uncaught (in promise) SyntaxError: Unexpected token '�', "�PNG
- Support for Angular 17 HOT 8
- Support qrCodeURL (EventEmitter) for 12.0.3 version HOT 1
- Ionic Capacitor NSURLResponse error HOT 2
- Could not find a declaration file for module 'qrcode' HOT 9
- types.ts RGBAColor issue HOT 1
- Warning on Compilation: Dependency on CommonJS 'qrcode' Module Causes Optimization Bailouts HOT 1
- qrcode module is not ESM HOT 1
- Please add support for Angular v18
- Android rendering? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularx-qrcode.