Basically, I completed the entire project but it would not open properly in the browser when I ran ‘npm run start’
I diffed my files against the solution code and couldn’t find any significant differences. However, I did find a workaround. Installing html-webpack-plugin with npm and then importing it and pasting the following snippet into the webpack.config.js in the module.exports obect.
yeah something is up with this project. i tried to run build and am getting a ‘field browser doesn’t contain a valid alias configuration’ i even changed the folder structure to src and dragged everything in so the file paths would be correct and no dice.
The lesson is already a year out of date.
I have the same error Cannot GET / where I run the command npm run start
I rechecked all the files, everything is the same except for the package.json. Different versions of packages, although they are listed with an increase — It’s not clear to me why everything works in the solution-code.
"webpack-dev-server": "^4.11.1" ← it's new one, which we need now and which are not in the tutorial