Cant resolve modules
See original GitHub issueIn webpack config we have: resolve: { modules: [path.resolve(__dirname, '../src'), 'node_modules'], }
But when import Link from 'components/Link'
Found error:
Error: Cannot find module 'components/Link'
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Can't resolve module (not found) in React.js - Stack Overflow
It seems you need import Header from './components/header/header' w/o src. File path is relative to importing file path. Then you need to export ......
Read more >How to configure webpack to fix "Can't resolve 'module' from ...
I'm having a hard time to run babel-plugin-macros with a storybook, it seems I need to configure the webpack: I asked the same...
Read more >Module not found: Can't resolve 'X' error in React | bobbyhadz
To solve the "Module not found: Can't resolve" error in React, make sure to install the package from the error message if it's...
Read more >How to fix 'Module not found: Error: Can't resolve'?
In this article, we're talking about the "module not found: Error: can't resolve" problem and giving you three fixes to resolve the error....
Read more >Have a JavaScript Module Not Found Error ... - Airbrake Blog
If you see a “Module not found: error can't resolve” JavaScript error, there's likely a problem with the communication between the module you're...
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
sure, for example if you want to make
import Header from 'src/components/Header'
works:oops, was a wrong link)