Closed addielmoldes closed 1 week ago
You have to configure your server such that it supports *.mjs files. This file type has been around for years, but for some reason unknown, many servers still don't recognise these files as JavaScript. Have a look at https://pdfviewer.net/extended-pdf-viewer/troubleshooting - I've explained the problem and the solution for a few popular servers.
I am also facing almost similar issue. I am using Angular 18.2.x. When I checked the node_modules folder I could not see viewer-4.6.688.min.mjs
But I can see viewer-4.6.688.mjs Can you please check ? I really appreciate your help
The way I solved this was by adding these lines in angular.json file
I already have this in my angular.json file. ngx-extended-pdf-viewer version 21.4.1 is working great. But when I am trying to install new version(21.4.3) its giving me this error. When I checked node modules assets folder , I could not find viewer-4.6.688.min.mjs
@stephanrauh yes, i can confirm the file is missing in latest release.
the viewer tries to load min.mjs, but only a .mjs file is there
I have this error when trying to display a pdf file
I'm running Angular v18.2.4, ngx-extended-pdf-viewer v21.4.1, my browser is Mozilla Firefox 130, also I'm using angular-architects' native federation for micro-frontends architecture, my OS Manjaro Linux and NodeJs v20.13.10