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.

Module not found Error with react-sketch as dependency

See original GitHub issue

Hi, I’m using react-sketch as a dependency in my JS project (thanks for a really cool tool 😃). I tried updating to version 0.5.1, and now webpack crashes with the following error.

ERROR in ./node_modules/react-sketch/dist/index.js
Module not found: Error: Can't resolve 'jsdom' in '/home/emma/sandbox/dash-canvas/node_modules/react-sketch/dist'
 @ ./node_modules/react-sketch/dist/index.js 1:85-101
 @ ./src/lib/components/DashCanvas.react.js
 @ ./src/lib/index.js

If I add jsdom to the list of devdependencies in the package.json file, then there a lots of new “Module not found” error (for ‘tls’, ‘fs’, ‘net’…).

I didn’t have the problem with version 0.4.4.

Any ideas about what’s going on? I’m not a Javascript expert, so any help will be very welcome…

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

2reactions
EmptyCrowncommented, Feb 4, 2020

+1

1reaction
emmanuellecommented, Apr 22, 2019

@tbolis did you have the time to look at #57?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Can't resolve React-js?
js Module not found: Error: Can't resolve '../src/index.js' in 'G:\new-react\reactquiz\src\components' @ multi (webpack)-dev-server/client?
Read more >
Integrating with Other Libraries - React
To demonstrate this, let's sketch out a wrapper for a generic jQuery plugin. We will attach a ref to the root DOM element....
Read more >
react-konva - npm
React Konva is a JavaScript library for drawing complex canvas graphics using React. It provides declarative and reactive bindings to the ...
Read more >
Getting started with react and canvas via Konva
react -konva is a JavaScript library for drawing complex canvas graphics using React. It provides declarative and reactive bindings to the Konva Framework....
Read more >
module not found error | can not resolve react dom module
Join this channel to get access to perks:https://www.youtube.com/channel/UCoSpmr2KNOxjwE_B9ynUmig/joinMy GearCamera ...
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