Module not found Error with react-sketch as dependency
See original GitHub issueHi, 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:
- Created 5 years ago
- Reactions:2
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1
@tbolis did you have the time to look at #57?