ng2-pdf-viewer icon indicating copy to clipboard operation
ng2-pdf-viewer copied to clipboard

Warning: Entry point 'ng2-pdf-viewer' contains deep imports into...

Open timrasche opened this issue 3 years ago • 29 comments

Generating browser application bundles (phase: setup)...Warning: Entry point 'ng2-pdf-viewer' contains deep imports into '/node_modules/pdfjs-dist/es5/build/pdf', '/node_modules/pdfjs-dist/es5/web/pdf_viewer'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

timrasche avatar Jun 09 '21 14:06 timrasche

Duplicate of #624

mickaelmesdocteurs avatar Jun 10 '21 07:06 mickaelmesdocteurs

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.

stale[bot] avatar Aug 09 '21 08:08 stale[bot]

Even i am facing the same issue with ng2-pdf-viewer, actually i am using in my angular project and everytime when i run the code it gives same warning

harishreddy311 avatar Aug 11 '21 10:08 harishreddy311

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.

stale[bot] avatar Oct 10 '21 15:10 stale[bot]

This issue is still present on when using it with Angular 12

olbapd avatar Nov 06 '21 18:11 olbapd

Entry point 'ng2-pdf-viewer' contains deep imports into 'C:/Users/User/Desktop/Multiples/node_modules/pdfjs-dist/es5/build/pdf', 'C:/Users/User/Desktop/Multiples/node_modules/pdfjs-dist/es5/web/pdf_viewer'. This is probably not a problem, but may cause the compilation of entry points to be out of order

Mismo Problema

andrexmore001 avatar Nov 11 '21 15:11 andrexmore001

ng2-pdf-viewer.js depends on 'pdfjs-dist/legacy/build/pdf'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

RolfVeinoeSorensen avatar Nov 29 '21 16:11 RolfVeinoeSorensen

Entry point 'ng2-pdf-viewer' contains deep imports into ...'node_modules/pdfjs-dist/legacy/build/pdf', ...'node_modules/pdfjs-dist/legacy/web/pdf_viewer'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

johannesnormannjensen avatar Dec 22 '21 10:12 johannesnormannjensen

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.

stale[bot] avatar Feb 20 '22 10:02 stale[bot]

This issue is still present on when using it with Angular 13

icecoldfire avatar Feb 20 '22 11:02 icecoldfire

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.

stale[bot] avatar Apr 24 '22 03:04 stale[bot]

This issue is still present on when using it with Angular 13

icecoldfire avatar Apr 24 '22 05:04 icecoldfire

This issue is still present on when using it with Angular 13

Confirm

timrasche avatar Apr 25 '22 07:04 timrasche

This issue is still present on when using it with Angular 13

Can confirm as well

johannesnormannjensen avatar Apr 27 '22 16:04 johannesnormannjensen

This issue persists

dualeoo avatar May 15 '22 07:05 dualeoo

This issue is still present on when using it with Angular 13

Same

AntonDeMeesterYokoy avatar Jul 18 '22 14:07 AntonDeMeesterYokoy

Still persists

satendrapratap avatar Sep 06 '22 16:09 satendrapratap

I solved these issue by just adding the "node_module/pdfjs.dist/build/pdf.js" in the script array under the build object in angular.json file

"architect" : { "build" : { .......... .......... "scripts": [ "node_modules/pdfjs-dist/es5/build/pdf.js" ] } }

Ashwin-kv avatar Sep 17 '22 06:09 Ashwin-kv

Issue exists in Angular 14 as well.

ammad172 avatar Oct 05 '22 11:10 ammad172

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.

stale[bot] avatar Dec 20 '22 22:12 stale[bot]

This issue persists

icecoldfire avatar Dec 20 '22 22:12 icecoldfire

Any update on this yet?

ammad172 avatar Dec 21 '22 06:12 ammad172

For those who came here with error

ng2-pdf-viewer.js depends on 'pdfjs-dist/legacy/build/pdf'. 
CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

like @RolfVeinoeSorensen posted here, go this way âž¡ https://github.com/VadimDez/ng2-pdf-viewer/issues/624

DerZyklop avatar Mar 06 '23 11:03 DerZyklop

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.

stale[bot] avatar May 19 '23 00:05 stale[bot]

This issue persists

icecoldfire avatar May 19 '23 06:05 icecoldfire

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.

stale[bot] avatar Aug 07 '23 05:08 stale[bot]

This issue persists

icecoldfire avatar Aug 07 '23 05:08 icecoldfire

This issue is present of Angular 11

subhasheonian avatar Sep 27 '23 13:09 subhasheonian

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.

stale[bot] avatar Jan 07 '24 11:01 stale[bot]