18
hinst
3y

Me setting up Webpack for a project

Error: can't resolve ./src

Guess what? ./src exists. So I go searching for an answer, and it turns out webpack looks for ./src/index.js and if it can't find it then it throws an error.

But the error message is: can't resolve ./src

The issue was reported ages ago but webpack devs never improved the error message

THIS IS WHY WEBPACK SUCKS 💩

Yes it might seem like a little detail but it just makes it all the more obvious that Webpack sucks right from the start when you set up a project the error message is stupid and unspecific

Comments
  • 1
    Indexfiles are just fallbacks if the exact path does not match.
  • 2
    Apparently the creator of web pack is working on rome? The replacement for all things
  • 1
    I have been setting up webpack for the first time and I was quite close to smashing my laptop to pieces
Add Comment