nodejs - react - TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of
2021-03-08 09:29
标签:oop yarn receive pat 打开 https 重新安装 expr ddl 然后 nodejs - react - TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined 标签:oop yarn receive pat 打开 https 重新安装 expr ddl 原文地址:https://www.cnblogs.com/clamp7724/p/12875523.html首先react需要安装nodejs
然后安装react
https://www.runoob.com/react/react-install.html
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:117:11)
at Object.join (path.js:375:7)
at noopServiceWorkerMiddleware (D:\IDEA\work\xlore-util\node_modules\react-dev-utils\noopServiceWorkerMiddleware.js:14:26)
at Layer.handle [as handle_request] (D:\IDEA\work\xlore-util\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (D:\IDEA\work\xlore-util\node_modules\express\lib\router\index.js:317:13)
at D:\IDEA\work\xlore-util\node_modules\express\lib\router\index.js:284:7
at Function.process_params (D:\IDEA\work\xlore-util\node_modules\express\lib\router\index.js:335:12)
at next (D:\IDEA\work\xlore-util\node_modules\express\lib\router\index.js:275:10)
at launchEditorMiddleware (D:\IDEA\work\xlore-util\node_modules\react-dev-utils\errorOverlayMiddleware.js:20:7)
at Layer.handle [as handle_request] (D:\IDEA\work\xlore-util\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (D:\IDEA\work\xlore-util\node_modules\express\lib\router\index.js:317:13)
at D:\IDEA\work\xlore-util\node_modules\express\lib\router\index.js:284:7
at Function.process_params (D:\IDEA\work\xlore-util\node_modules\express\lib\router\index.js:335:12)
at next (D:\IDEA\work\xlore-util\node_modules\express\lib\router\index.js:275:10)
at handleWebpackInternalMiddleware (D:\IDEA\work\xlore-util\node_modules\react-dev-utils\evalSourceMapMiddleware.js:42:7)
at Layer.handle [as handle_request] (D:\IDEA\work\xlore-util\node_modules\express\lib\router\layer.js:95:5)
一般是因为版本问题。
我这边的解决办法:
yarn start
启动
文章标题:nodejs - react - TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of
文章链接:http://soscw.com/index.php/essay/61753.html