01-フロントエンドの質問:「path」引数は文字列型である必要があります。受信したタイプは未定義です
01 Front End Question
1.スタック情報
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:WORKERhtml
ode_modules\_react-dev-root@xxxxx.2.root@xxxxx-dev-utils
oopServiceWorkerMiddleware.js:14:26) at Layer.handle [as handle_request] (F:WORKERhtml
ode_modules oot@xxxxx.17.root@xxxxxlib outerlayer.js:95:5) at trim_prefix (F:WORKERhtm
ode_modules oot@xxxxx.17.root@xxxxxlib outerindex.js:317:13) at F:WORKERhtml
ode_modules oot@xxxxx.17.root@xxxxxlib outerindex.js:284:7 at Function.process_params (F:WORKERhtml
ode_modules oot@xxxxx.17.root@xxxxxlib outerindex.js:335:12) at next (F:WORKERhtml
ode_modules oot@xxxxx.17.root@xxxxxlib outerindex.js:275:10) at launchEditorMiddleware (F:WORKERhtml
ode_modules\_react-dev-root@xxxxx.2.root@xxxxx-dev-utilserrorOverlayMiddleware.js:20:7) at Layer.handle [as handle_request] (F:WORKERhtml
ode_modules oot@xxxxx.17.root@xxxxxlib outerlayer.js:95:5)
As shown
2.問題の原因
「react-scripts」:「3.3.1」
三。解決
-
Upgrade dependency
cnpm install --save react-root@xxxxx.4.0