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: Cannot resolve directory './images'

See original GitHub issue

Description

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

  1. npm ls react-scripts (if you haven’t ejected): 0.6.0
  2. node -v: 6.3.0
  3. npm -v: 3.10.3

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
themrecommented, Sep 28, 2016

Yeah,saw it,read only half of posts,sorry 😃

  1. sep. 2016 8:57 pop. je oseba “Dan Abramov” notifications@github.com napisala:

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 .

0reactions
gaearoncommented, Sep 28, 2016
Read more comments on GitHub >

github_iconTop 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 >

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