Using npm run dev
results in the error:
Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. configuration.module.rules[10] has an unknown property 'loaders'
rm -rf node_modules
and wait for the command to completerm package-lock.json
npm cache clear --force
sudo npm install --global npm
- this updates NPM (Node Package Manager)sudo yarnpkg install
sudo yarnpkg add babel@latest
sudo yarnpkg add webpack@latest
sudo yarnpkg add webpack-cli@latest
sudo yarnpkg add vue-template-compiler --save-dev --production=false
sudo yarnpkg add sass-loader@8.* sass --save-dev --production=false
sudo npm install --global cross-env
yarnpkg run dev
NPM is supposed to return a success message, but clearly something is either broken or misconfigured...
Problem has been solved through either an NPM or Yarn update