N
N
Nikita Shchypylov2018-06-29 17:52:35
webpack
Nikita Shchypylov, 2018-06-29 17:52:35

Why doesn't webpack-dev-server see ./src?

The structure is:
-frontend
--webpack.config.js
--src
-package.json
In package.json I have a command:

"start-frontend": "webpack-dev-server --mode development --open --hot --content-base ./frontend",

When it starts it gives:
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src
Module not found: Error: Can't resolve './src' in '/Users/shchypylov/Documents/projects/playground/sell_fullstack'
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src
ℹ 「wdm」: Failed to compile.

Why?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question