Bootstrap

01-前端问题:The “path” argument must be of type string. Received type undefined

一.堆栈信息

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:112:11)
    at Object.join (path.js:375:7)
    at noopServiceWorkerMiddleware (F:\WORKER\html\node_modules\_react-dev-utils@10.2.0@react-dev-utils\noopServiceWorkerMiddleware.js:14:26)
    at Layer.handle [as handle_request] (F:\WORKER\html\node_modules\_express@4.17.1@express\lib\router\layer.js:95:5)
    at trim_prefix (F:\WORKER\htm\node_modules\_express@4.17.1@express\lib\router\index.js:317:13)
    at F:\WORKER\html\node_modules\_express@4.17.1@express\lib\router\index.js:284:7
    at Function.process_params (F:\WORKER\html\node_modules\_express@4.17.1@express\lib\router\index.js:335:12)
    at next (F:\WORKER\html\node_modules\_express@4.17.1@express\lib\router\index.js:275:10)
    at launchEditorMiddleware (F:\WORKER\html\node_modules\_react-dev-utils@10.2.0@react-dev-utils\errorOverlayMiddleware.js:20:7)
    at Layer.handle [as handle_request] (F:\WORKER\html\node_modules\_express@4.17.1@express\lib\router\layer.js:95:5)
  • 如图

在这里插入图片描述

二.问题原因

“react-scripts”: “3.3.1”

在这里插入图片描述

三.解决方法

  • 升级依赖

       cnpm install --save react-scripts@3.4.0
    

悦读

道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。

;