Getting “Error: `output.path` needs to be an absolute path or `/`”

后端 未结 4 2018
离开以前
离开以前 2020-12-01 01:30

I am new to JS development, in an attempt to hot load changes using webpack-dev-server I keep above exception. The exact stack is:

Error: `output.path` needs         


        
4条回答
  •  没有蜡笔的小新
    2020-12-01 02:29

    you need to include this at the top of or webpack.config.js file var path = require('path') and then in your path do the following: path: path.join(__dirname, "dist/js")

提交回复
热议问题