Follow the video and go down. After the webpack dev server is installed and configured, NPM run dev is displayed on the page Cannot get /. The video runs normally. I guess it is because the installed versions are different. The Internet says that as long as the document is not in the directory specified by contentbase, only cannot get will be displayed; So as long as the document is placed in this directory, it can work normally
devServer:{ contentBase:'./src', }
In addition, NPM run dev reports an error, saying that there is no such attribute in devserver. It should be the version problem. Finally, it is found in the official website document
devServer: { static: './src', },
After re running NPM run dev, the page displays normally and functions normally.
Similar Posts:
- Natapp solves the problem of invalid host header
- Solution for ueeditor reporting error uparse is not defined
- Solution to the error of video codec open failed prompted by TechSmith Camtasia Studio 9 screen recording software
- Opencv learning notes 05 face detection and recognition attributeerror: module ‘CV2’ has no attribute ‘face’
- When using bootstrap modal box, uncaught typeerror: $(…). Modal is not a function
- Ffmpeg operation not permitted error resolution process record
- document.body.scrollTop or document.documentElement.scrollTop
- How to Solve Word experienced an error trying to open
- http://10.18.5.83:8080/ Browse Error: A default document is not configured for the requested URL, and directory browsing is not enabled on the server
- [Solved] Bpmn.js Run Error: unhandled error in event listener TypeError: bo.get is not a function