【解決】TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined

【解決】TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

暫く触っていないやつをyarn startしたら出た
path??てなった。

解決方法

  • 最新のreact-scriptのバージョンを確認する
  • それをpackage.json上のと変更してyarn install
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (internal/validators.js:120:11)
    at Object.join (path.js:1039:7)
    at noopServiceWorkerMiddleware (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/react-dev-utils/noopServiceWorkerMiddleware.js:14:26)
    at Layer.handle [as handle_request] (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/index.js:317:13)
    at /Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/index.js:275:10)
    at launchEditorMiddleware (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/react-dev-utils/errorOverlayMiddleware.js:20:7)
    at Layer.handle [as handle_request] (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/index.js:317:13)
    at /Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/index.js:275:10)
    at handleWebpackInternalMiddleware (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/react-dev-utils/evalSourceMapMiddleware.js:42:7)
    at Layer.handle [as handle_request] (/Users/kenjimorita/git/TodoApp-with-React_Recoil_TypeScript/node_modules/express/lib/router/layer.js:95:5)

run

npm info react-scripts version

3.4.3

add to package.json

  "dependencies": {
    "@types/recoil": "^0.0.1",
    "@types/uuid": "^8.0.0",
    "lodash": "4.17.15",
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-scripts": "3.4.3", // change with above version

run

rm -rf node_modules
yarn install
yarn start

todo list with recoil - react - example - typescript

TodoApp-with-React_Recoil_TypeScript


「武骨日記の」プライバシーポリシーに関して
・プライバシーポリシー
・個人情報取り扱いに関して

・サイトTOP
・私は何者か
・29歳よしもと芸人がWebデザイナー未経験で学校に通い5年後フリーランスのフロントエンドエンジニアになるためにやった9つのこと
・フロント記事
・
フロントエンドエンジニア
・フロントエンド記事(タグ)
・TypeScript
・TypeScript練習問題集
・【TypeScript】TypeSript中級者になる為に知っておくと良い108個のこと
・JavaScript練習問題
・styled-componentsの使い方
・SCSS問題集
・GraphQL「Apollo x Relay-Style-Cursor-Pagination(リレースタイルカーソルページネーション)」
・recomposeと仲良くなりたい
・機動戦士FlowType
・初めてReactNativeWebを触ってみて
・Ramda.jsシグネチャの読み方
・環境変数の話
・いちごタルトの作り方
・フロントエンドエンジニア豚汁の作り方


「武骨日記の」プライバシーポリシーに関して
プライバシーポリシー

株式会社TerraceTechについて
最近起業しました。
・株式会社TerraceTech

SNS
・しずかなインターネット kenjimorita
・インド旅 instagram
・適当な日常写真 instagram
・シュールさーん instagram
・シュールさーん LINEスタンプ
・もりたけんじTwitter
・ネタ帳Twitter
・note

・FaceBook -kennji.morita-

※わたしが結成しているWebチームではWeb未経験者、フリーランスの方へのお仕事を紹介しています。
また個人レッスンしてほしい生徒も募集中です。
もしご興味ある方はチャットからご連絡ください。

※業務連絡やお久しぶり連絡もチャットからお願いします。