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

Error: Cannot match any routes #63

Closed
jochenonline opened this issue Jan 6, 2020 · 2 comments
Closed

Error: Cannot match any routes #63

jochenonline opened this issue Jan 6, 2020 · 2 comments
Labels
community wiki how to question Please ask on stackoverflow for the benefit of the community

Comments

@jochenonline
Copy link

jochenonline commented Jan 6, 2020

When running my application with ng serve everything works fine. But after building it with ng build --prod I get ...

ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 
'assets/pdfjs/web/viewer.html' 
Error: Cannot match any routes. URL Segment: 'assets/pdfjs/web/viewer.html'

... at the moment the pdfviewer component should be displayed. What am I doing wrong? Thanks for your help.

@codehippie1
Copy link
Contributor

@jochenonline This looks more like an angular route issue. Would you mind asking this question on stack overflow under ng2-pdfjs-viewer tag?

@codehippie1 codehippie1 added the how to question Please ask on stackoverflow for the benefit of the community label Mar 4, 2020
@vishnu-dev
Copy link

vishnu-dev commented Mar 27, 2020

Refer https://stackoverflow.com/a/60889056/5120049. It works. This happens when the copy of pdfjs folder to assets folder does not happen properly. @jochenonline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community wiki how to question Please ask on stackoverflow for the benefit of the community
Projects
None yet
Development

No branches or pull requests

3 participants