Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
randyparis opened this issue Feb 3, 2024 · 3 comments

Comments

@randyparis
Copy link

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
Copy link
Author

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 randyparis reopened this Feb 3, 2024
@randyparis
Copy link
Author

closed inadvertently

@Dafnik
Copy link

Dafnik commented Jun 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants