react-a11y-announcer icon indicating copy to clipboard operation
react-a11y-announcer copied to clipboard

update npm start command

Open rayng86 opened this issue 3 years ago • 1 comments

npm script is broken and gives an error when you try running it on you local environment.

Error Message when running npm start:

Error: Cannot find module 'webpack-cli/bin/config-yargs'
Require stack:
../react-a11y-announcer/node_modules/webpack-dev-server/bin/webpack-dev-server.js

It looks like we are on "webpack-cli": "^4.1.0",, which now requires an updated command for npm start to work properly.

The fix was to change the following in package.json:

"scripts": { "start": "webpack-dev-server" }

to

"scripts": { "start": "webpack serve" }

rayng86 avatar Aug 09 '21 18:08 rayng86