question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Seemingly conflicting how-to-build.md Instructions

See original GitHub issue

I have been attempting to build the ngx-extended-pdf-viewer library from scratch, so as to incorporate a slightly-modified pdf.js. The provided walkthrough, however, seems to conflict with both itself and the updateMozillasPdfViewer.sh/.bat scripts.

Steps 2-11 involve building pdf.js in an embedded-pdf folder, although navigation in steps 12-14 assume pdf.js was not nested within any folder.

Step 14’s update scripts refer to a mypdf.js directory for the pdf.js build, despite the build instructions referring to mozillas-pdf.js.

In an attempt to avoid these issues, I place the cloned pdf.js repo in the same directory as this repo, and rename it to mypdf.js. The updateMozillasPdfViewer.bat script and npm run win-package then run without any explicit errors.

Unfortunately, ng serve results in a “properly” compiled Angular project which fails to display anything due to unreachable resources (404s for runtime.js, pollyfills.js, styles.js (those don’t exist within src to begin with, perhaps a package.json issue?)).

Any advice on how to build from source? Have I unintentionally been going about this all wrong? Thank you in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DHaliloviccommented, Jul 29, 2020

Sorry for the delay with finalizing testing! Runs without any issues, from my standpoint!

1reaction
DHaliloviccommented, Jul 22, 2020

Thanks for the quick response! It turns out that, for the end result issue, I simply had to point the <base href...> in index.html to the root directory; ng serve seems to work fine then, though I’ll have to see if this creates any other problems. Otherwise, it appears both your Windows and Unix build scripts work well. Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conflict management: a primer for doctors in training - NCBI
There is evidence that many conflicts remain unsatisfactorily resolved or unresolved, and result in ongoing issues for staff morale. This paper describes the ......
Read more >
Resolving Conflict in the Classroom
Here is a simple plan to help students overcome conflict, including some great suggestions from school psychologist and writer, Laura Driscoll:.
Read more >
The four tiers of conflict of interest faced by board directors
Board members are required to always use ethical and appropriate judgment to make seemingly correct choices when conflicts arise. In many other countries, ......
Read more >
Benefitting from the Common Heritage of Humankind
The common heritage concept encapsulates seemingly conflicting developmental, commercial, and ecological imperatives. With seabed mining edging ...
Read more >
How to reconcile seemingly conflicting wisdom from mental ...
How do you reconcile seemingly conflicting wisdom from mental health professionals on the one hand ... A month or so I got another...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found