Skip to content

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

Open
@leandrojk

Description

@leandrojk

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions