ng2-pdfjs-viewer icon indicating copy to clipboard operation
ng2-pdfjs-viewer copied to clipboard

uploaded 'dist' throws 404 errors - has different config than earlier (working) version

Open randyparis opened this issue 1 year ago • 3 comments

Screenshot 2024-02-02 at 4 49 31 PM Screenshot 2024-02-02 at 5 36 36 PM Screenshot 2024-02-02 at 4 57 18 PM 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


randyparis avatar Feb 03 '24 01:02 randyparis

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

randyparis avatar Feb 03 '24 01:02 randyparis

closed inadvertently

randyparis avatar Feb 03 '24 01:02 randyparis

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) Screenshot 2024-06-25 at 11 14 50

Not working: (on prod)

Screenshot 2024-06-25 at 11 16 05

Dafnik avatar Jun 25 '24 09:06 Dafnik