'Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)
I am getting this error while using angular 11.0 with native script and android (on importing webcam module to app.module from npm):
Error: ./node_modules/ngx-webcam/fesm2015/ngx-webcam.mjs 482:20-42
Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)
Solution 1:[1]
I solved the above error by migrating my angular application cli version from 11.0 to 12.2.16 (or latest stable version ). After that, camera feature was working fine
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | desertnaut |
