Update to version 18 not working #112105
Replies: 2 comments
-
Hey! try and ensure that the server is configured to serve '.mjs' files with the correct MIME type 'application/javascript' or 'application/ecmascript' instead of 'text/plain'. This can typically be configured in the server's MIME type settings. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I have an angular project that has been using ngx-extended-pdf-viewer for years.
Now my project works with angular 17 and nvm v 21.4.0 and 18.1.14.
I updated ngx-extended-pdf-viewer to version 19.4.1.
In nvm run it works correctly (the pdf is visible and navigable)
In nvm build the pdf is not visible (only the toolbar is visible) and the following error appears in the console:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
pdf-4.0.851.min.mjs
I also tried with previous versions like 19.2.0, but nothing.
What is the problem?
Beta Was this translation helpful? Give feedback.
All reactions