Reputation: 49
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)
Upvotes: 1
Views: 11997
Reputation: 49
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
Upvotes: 1