Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available)

Viewed 15

I am created angular 11 Project when I run application i am getting below Error

Angular version-11 PrimeNg Version-13

========================= Error: ./node_modules/primeng/fesm2015/primeng-checkbox.mjs 178:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-password.mjs 831:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-calendar.mjs 3862:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-calendar.mjs 3863:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-calendar.mjs 3864:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-dropdown.mjs 1711:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-dropdown.mjs 1712:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) 1m Error: ./node_modules/primeng/fesm2015/primeng-dropdown.mjs 1713:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-dropdown.mjs 1714:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-dropdown.mjs 1715:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-tabview.mjs 690:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) Error: ./node_modules/primeng/fesm2015/primeng-tabview.mjs 691:6-20 Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available)

Package.json "dependencies": { "@angular/animations": "~11.1.1", "@angular/common": "~11.1.1", "@angular/compiler": "~11.1.1", "@angular/core": "~11.1.1", "@angular/forms": "~11.1.1", "@angular/platform-browser": "~11.1.1", "@angular/platform-browser-dynamic": "~11.1.1", "@angular/router": "~11.1.1", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.11.3", "primeng": "^13.0.2", "primeicons": "^5.0.0", "@angular/cdk": "^13.1.0", "quill": "^1.3.7", "angular-svg-icon": "^13.0.0", "chart.js": "^3.6.2", "ng2-charts": "^3.0.2", "bootstrap": "^5.1.3", "@fullcalendar/angular": "^5.10.2", "@fullcalendar/daygrid": "^5.10.1", "@fullcalendar/interaction": "^5.10.1", "@fullcalendar/timegrid": "^5.10.1", "ngx-dynamic-hooks": "^2.0.0" }

tsconfig.json

{ "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "downlevelIteration": true, "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, "target": "es2015", "module": "es2020", "lib": [ "es2018", "dom" ] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false } }

0 Answers
Related