gpt4 book ai didi

ionic-framework - 运行命令 ionic(5)serve 后出现以下错误

转载 作者:行者123 更新时间:2023-12-01 15:45:41 25 4
gpt4 key购买 nike

类型错误 [ERR_INVALID_ARG_TYPE]:“路径”参数必须是字符串类型。收到的类型未定义 在 validateString (内部/validators.js:112:11) 在 Object.join (path.js:375:7) 在noopServiceWorkerMiddleware (D:\React+ReactNative学习\myApp\node_modules\react-dev-utils\noopServiceWorkerMiddleware.js:14:26) 在Layer.handle [作为handle_request] (D:\学习React+ReactNative\myApp\node_modules\express\lib\router\layer.js:95:5) 在trim_prefix(D:\学习React+ReactNative\myApp\node_modules\express\lib\router\index.js:317:13) 位于D:\React+ReactNative学习\myApp\node_modules\express\lib\router\index.js:284:7 在Function.process_params (D:\React+ReactNative学习\myApp\node_modules\express\lib\router\index.js:335:12) 接下来(D:\React+ReactNative学习\myApp\node_modules\express\lib\router\index.js:275:10) 在启动EditorMiddleware时(D:\React+ReactNative学习\myApp\node_modules\react-dev-utils\errorOverlayMiddleware.js:20:7) 在Layer.handle [作为handle_request] (D:\学习React+ReactNative\myApp\node_modules\express\lib\router\layer.js:95:5) 在trim_prefix(D:\学习React+ReactNative\myApp\node_modules\express\lib\router\index.js:317:13) 位于D:\React+ReactNative学习\myApp\node_modules\express\lib\router\index.js:284:7 在Function.process_params (D:\React+ReactNative学习\myApp\node_modules\express\lib\router\index.js:335:12) 接下来(D:\React+ReactNative学习\myApp\node_modules\express\lib\router\index.js:275:10) 在handleWebpackInternalMiddleware (D:\学习React+ReactNative\myApp\node_modules\react-dev-utils\evalSourceMapMiddleware.js:42:7) at Layer.handle [as handle_request] (D:\React+ReactNative学习\myApp\node_modules\express\lib\router\layer.js:95:5)

最佳答案

我找到了一个修复,似乎问题源于react-scripts 3.3.x系列。在 package.json 中我改变了

"react-scripts":"3.3.0" 

"react-scripts":"^3.4.0"

然后运行npm iionicserve,它就可以工作了。

更多信息请点击 https://github.com/facebook/create-react-app/issues/8490

关于ionic-framework - 运行命令 ionic(5)serve 后出现以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60236986/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com