ng2-pdfjs-viewer
ng2-pdfjs-viewer copied to clipboard
uploaded 'dist' throws 404 errors - has different config than earlier (working) version
Screen shots are 1 : the upload of the new version 'dist' to my web server showing 404 errors.
2. the localhost version of same which performs perfectly. (http://localhost:4200/?pdf=ARK2)
3: original (older ng version) of 'dist' compared to new versions 'dist' files and folders configured and apparently built differently.
I've tried reconfiguring the newer folders and files to match the original's structure, but no joy. Here's url of the new build - which does not load: https://www.randyparis.com/RPArchive_update/assets/writing/manuscript_pdfs/my-new-pdfviewer/?pdf=ARK2
The new project version is:
Angular CLI: 17.0.10
Node: 20.11.0
Package Manager: npm 10.2.4
OS: darwin x64
Angular: 17.1.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic
... platform-server, router
Package Version
@angular-devkit/architect 0.1700.9 (cli-only) @angular-devkit/core 17.0.9 (cli-only) @angular-devkit/schematics 17.0.9 (cli-only) @schematics/angular 17.0.9 (cli-only)
Original project version:
Angular: 14.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.1401.1 @angular-devkit/build-angular 14.1.1 @angular-devkit/core 14.1.1 @angular-devkit/schematics 14.1.1 @schematics/angular 14.1.1 rxjs 7.5.6
Here's url to the original working version: It takes a while to load, but it works: https://www.randyparis.com/RPArchive_update/assets/writing/manuscript_pdfs/ngx-pdf-viewer/index.html?pdf=ARK3
closed inadvertently
I have also an issue most likely like this.
For me, the pdf viewer works in dev mode but when I make a production build the 404 page of my application gets loaded in the place of the pdf viewer.
Working: (in dev)
Not working: (on prod)