My older project needs some attention, but when I attempt to run the command npm start in the terminal, a lengthy error message pops up. Here's what it says:
@ start /Users/juanlopez/tiy/week-5/day-4/portfolio-2.0 webpack-dev-server
/Users/juanlopez/tiy/week-5/day-4/portfolio-2.0/webpack.config.js:88 new webpack.optimize.OccurenceOrderPlugin(), ^
TypeError: webpack.optimize.OccurenceOrderPlugin is not a constructor at Object. (/Users/juanlopez/tiy/week-5/day-4/portfolio-2.0/webpack.config.js:88:5)
Following these webpack errors, npm throws additional errors
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/Cellar/node/7.1.0/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v7.1.0
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! @ start: webpack-dev-server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script 'webpack-dev-server'.
Can someone guide me on where I might be going wrong here? Could it have something to do with the webpack version I'm using? I've attempted updating both webpack and Node.
This is my JSON setup
{
// insert JSON data here
}
This is my Webpack.config file
// insert Webpack config data here