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: Can't resolve './dist/ReactCrop'

See original GitHub issue

Getting Module not found: Error: Can't resolve './dist/ReactCrop' after upgrading to latest just now

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
DominicTobiascommented, Jan 31, 2017

Released 2.0.2 - please let me know if that fixes your issue @babsonmatt

2reactions
yury-dymovcommented, Jan 31, 2017

@DominicTobias, I installed the package and I can see that dist/ReactCrop.css is there and ReactCrop.js is missing. Seems you forgot to build the js according to the scripts section:

"release-css": "node-sass lib/ReactCrop.scss dist/ReactCrop.css",
"release-js": "cross-env NODE_ENV=production webpack",
Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Can't resolve 'react-crop/css' #25 - GitHub
I am just trying to get Cropper up and running in a project but cannot seem to get react-crop/css to load. I have...
Read more >
react-image-crop - npm
A responsive image cropping tool for React. Latest version: 10.0.9, last published: a month ago. Start using react-image-crop in your ...
Read more >
Can't resolve module (not found) in React.js - Stack Overflow
Module not found : Error: Can't resolve '/components/body. While everything was in the correct directory. I found that renaming body.jsx to ...
Read more >
How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Your browser can't play this video. ... How to fix ' Module not found : Can't resolve 'http' in ...' error with FCL...
Read more >
react-image-crop/README.md - UNPKG
3, An image cropping tool for React with no dependencies. ... 48, Include the main js module: ... 57, import 'react-image-crop/dist/ReactCrop.css';.
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