Skip to content

The above dynamic import cannot be analyzed by Vite. #1184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DarwinSODISYS opened this issue Mar 12, 2025 · 1 comment
Open

The above dynamic import cannot be analyzed by Vite. #1184

DarwinSODISYS opened this issue Mar 12, 2025 · 1 comment

Comments

@DarwinSODISYS
Copy link

getting this warning in my angular project after install this lib can you please any one help me

The above dynamic import cannot be analyzed by Vite.
See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.

Plugin: vite:import-analysis
File: /Users/darwinraj/Documents/SODISYS/Projects/sodisys-saas/projects/ng-sodisys/.angular/vite-root/sodisys/chunk-77QDKOY6.js

@fua03
Copy link

fua03 commented Apr 2, 2025

The issue was resolved in the newest version of pdfjs-dist (released 2 days ago). I created the following PR to update the version of the aforementioned lib in ng2-pdf-viewer: #1188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants