Closed wirtaw closed 7 years ago
Hi,
Can you push a project showing the issue to GitHub? It's easier to debug then.
Hi, Yes, I can. Where is webpack-demo
Hi,
Alter the app
directory so that it looks like this:
app $ tree
.
├── component.js
└── index.js
That will fix the import.
Yes, it also helps. Thank you!
When try make bundle with
node_modules/.bin/webpack
ERROR in ./app/index.js Module not found: Error: Can't resolve './component' in 'xxxxxxxx/webpack-demo/app' @ ./app/index.js 1:0-36
get error If add to import directory at index.jsfrom './component/component.js'
then it make bundle without errors