Module not found: Cannot resolve directory './images'
See original GitHub issueDescription
App throws error about resolving images directory from node_modules. It worked with version 0.42. I import css like this:
import 'leaflet/dist/leaflet.css'
Expected behavior
Application should open.
Actual behavior
It throws error:
Module not found: Cannot resolve directory './images' in C:\MyApp\node_modules\leaflet\dist
Environment
npm ls react-scripts
(if you haven’t ejected): 0.6.0node -v
: 6.3.0npm -v
: 3.10.3
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Module not found: Can't resolve image in React [Solved]
The React.js error Module not found: Can't resolve image occurs when we specify an incorrect path to the imported image. To solve the...
Read more >npm start error "Module not found: Error: Cannot resolve ...
I use Sublime Text 3, not Atom. I recloned the directory, but the errors are still here. – Vasyl Samusiev. Jun 27, 2016...
Read more >Cannot resolve directory '@' error in PhpStorm with Vite
Hello,. I've been working with Vuejs and Vite in TypeScript environment and did not get this issue. I defined '@' to be path...
Read more >Module not found | Can not resolve module in react - YouTube
Join this channel to get access to perks:https://www.youtube.com/channel/UCoSpmr2KNOxjwE_B9ynUmig/joinMy GearCamera ...
Read more >webstrom中报错Cannot resolve directory '~@' - CSDN博客
记录在做项目中遇到的问题:webstrom中报错Cannot resolve directory ... 在webpack的使用中,出现如下错误:Module not found: Error: Cannot ...
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
Yeah,saw it,read only half of posts,sorry 😃
The issue is reported here: Leaflet/Leaflet#4849 https://github.com/Leaflet/Leaflet/issues/4849.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/facebookincubator/create-react-app/issues/782#issuecomment-250264932, or mute the thread https://github.com/notifications/unsubscribe-auth/AKV7etgSySovp8_Lvs77VtrnCGcckGykks5quriJgaJpZM4KHraN .
The issue is reported here: https://github.com/Leaflet/Leaflet/issues/4849.