Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using webpack without config file: can't resolve ./src message error #2035

Open
leandrojk opened this issue Apr 13, 2018 · 2 comments
Open
Assignees

Comments

@leandrojk
Copy link

Hi,

webpack 4.x.x can be used without configuration file (as said at https://webpack.js.org/concepts/ - "Since v4.0.0 webpack does not require a configuration file").
What is not said explicitly is that the root file must be index.js. If you put any other file name at src folder the error message is :

ERROR in Entry module not found: Error: Can't resolve './src' in '/home/leandro/repositorios-git/INE5646-2018/teste_webpack'

My sugestion: Alter docs and error message to let explicit the real cause of the problem: file ./src/index.js not found.

Leandro

@jeremenichelli
Copy link
Member

Taking over this

@ctsstc
Copy link

ctsstc commented Aug 7, 2018

I'm still getting this error as well when using a config file. Has this been released yet?
Is there a way to change the entry point without adding an index.js?
Never mind found it: https://webpack.js.org/concepts/entry-points/

I assume the fix is just t fix the verbiage? And it's possible the project I'm working on doesn't have the latest version that may contain such a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants