개발 Log/에러 모음

[React][error] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

itaeiou 2021. 10. 12. 13:40
반응형

React TypeError

 

react-scripts의 버전이 맞지 않아 발생하는 문제

 

"react-scripts": "^3.3.1" ("^3.x.x") 를

"react-scripts": "^3.4.0" 로 변경

 

1. package.json 파일에서 

"react-scripts": "^3.4.0" 로 버전 변경

2. cmd에서 npm update

 

3. cmd에서 npm start

정상 동작!

 

 

참고

https://stackoverflow.com/questions/60234640/typeerror-err-invalid-arg-type-the-path-argument-must-be-of-type-string-re/60242323#60242323

 

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting react

I'm working on a project in React and ran into a problem that has me stumped. Whenever I run yarn start I get this error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type

stackoverflow.com

 

반응형