JS imported library missing

When instructing to import a PDF library, getting 404 error while downloading the PDF library asset.

Uncaught TypeError: Failed to fetch dynamically imported module: https://unpkg.com/pdfjs-dist@4.10.38/build/pdf.worker.min.js

{
  "filename": "blob:https://189e3799-df18-40ab-b642-3f69f844a2c0.lovableproject.com/6085ac36-a1a0-4b8a-a7fc-885309ff0060",
  "message": "Uncaught TypeError: Failed to fetch dynamically imported module: https://unpkg.com/pdfjs-dist@4.10.38/build/pdf.worker.min.js",
  "lineno": 0,
  "colno": 0
}

Project: https://lovable.dev/projects/189e3799-df18-40ab-b642-3f69f844a2c0

Try to upload a PDF to reproduce.

curl -I https://unpkg.com/pdfjs-dist@4.10.38/build/pdf.worker.min.js HTTP/2 404

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
πŸ›

Bug Hunting

Date

3 months ago

Author

Alexis de Treglode

Subscribe to post

Get notified by email when there are changes.