Cannot read property 'upgrade' of undefined - vue scaffolding project startup error

Started the vue project today and found that the terminal reported an error:
insert image description here
Cannot read property "upgrade" of undefined: Cannot read undefined "upgrade"
Click the error first location: D:\project\szhbgpt-web\node_modules\webpack-dev-server\ lib\Server.js:135:47 (as shown below:)

proxyConfigOrCallback: Proxy callback configuration
So look at the proxy
insert image description here
insert image description here
solution in vue.config.js to configure the proxy target can not be empty, fill in the interface address to run the project normally

Guess you like

Origin blog.csdn.net/m0_66504310/article/details/127949352