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.

Error in node_modules

See original GitHub issue

`ERROR in ./node_modules/react-pdf-js/lib/Pdf.js 02/02/2018 15:00:49Module not found: Error: Can’t resolve ‘pdfjs-dist/build/pdf.combined’ in ‘/app/node_modules/react-pdf-js/lib’ 02/02/2018 15:00:49 @ ./node_modules/react-pdf-js/lib/Pdf.js 49:0-40 02/02/2018 15:00:49 @ ./node_modules/react-pdf-js/lib/index.js 02/02/2018 15:00:49 @ ./src/components/serviceHistory/index.js 02/02/2018 15:00:49 @ ./src/containers/adverts/index.js 02/02/2018 15:00:49 @ ./src/containers/main/index.js 02/02/2018 15:00:49 @ ./src/index.js 02/02/2018 15:00:49 @ multi ./src/index.js

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
Driptapcommented, Feb 2, 2018

I had this problem too, building v3.0.6 with the previously used version of pdfjs-dist works (2.0.203). I’m guessing there is some problem with that.

0reactions
MichaelDeBoeycommented, Feb 7, 2018

@mikecousins We should indeed get rid of the pdf.combined 🙂 Since the provided polyfills won’t be included anymore, that would be a major version bump.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript build getting errors from node_modules folder
I am running a typescript build and getting errors in node_modules. Why isn't it ignoring this folder? I have it in the exclude...
Read more >
Getting [TS] errors for files inside the node_modules folder
I'm getting the following errors from files in nodes_modules. Does it have to do with my tsconfig.json?
Read more >
Typescript standalone project shows errors in node_modules ...
After installing a new Visual Studio 2022 visual studio shows errors in scripts in node_modules directory. I still can compile and run the...
Read more >
Common TypeScript module problems and how to solve them
Problem 1: Irregular location of dependencies ; node_modules in the ; src directory even though ; node_modules is located outside the ; src ......
Read more >
Disable type checking for node_modules in TypeScript
If the errors are not resolved, make sure that the exclude array in your tsconfig.json file contains the path to your node_modules directory....
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