Module build failed for ngx-extended-pdf-viewer #2952
Unanswered
muhammedjasin
asked this question in
Q&A
Replies: 1 comment
-
The root cause of the issue is that Angular migrated from common-js modules to ESM modules. ngx-extended-pdf-viewer is only accidentally reported. Have a look at your {
"compilerOptions": {
"module": "commonjs", // ← Problem
"target": "es5" // ← also problematic
}
} This configuration should work better: // tsconfig.json
{
"compilerOptions": {
"module": "ES2022",
"target": "ES2022",
"moduleResolution": "bundler"
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have upgraded my angular application from 14 to 18 getting this error on ngx-extended-pdf-viewer(23.3.1)-
./node_modules/ngx-extended-pdf-viewer/fesm2022/ngx-extended-pdf-viewer.mjs - Error: C:\project\node_modules\ngx-extended-pdf-viewer\fesm2022\ngx-extended-pdf-viewer.mjs: Cannot find module 'C:/project/node_modules/@babel/runtime/helpers/esm/regeneratorValues'
Require stack:
Beta Was this translation helpful? Give feedback.
All reactions