解决'Invalid options object'错误:Dev Server 初始化参数问题
This error message suggests that there is an issue with the options object used to initialize the development server. The error specifically mentions that the 'public' property is not a valid option.
The valid options for the Dev Server are listed as follows:
- allowedHosts
- bonjour
- client
- compress
- devMiddleware
- headers
- historyApiFallback
- host
- hot
- http2
- https
- ipc
- liveReload
- magicHtml
- onAfterSetupMiddleware
- onBeforeSetupMiddleware
- onListening
- open
- port
- proxy
- server
- setupExitSignals
- setupMiddlewares
- static
- watchFiles
- webSocketServer
You need to remove or fix the 'public' property in order to resolve this error.
原文地址: https://www.cveoy.top/t/topic/6KB 著作权归作者所有。请勿转载和采集!