TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
See original GitHub issue🐛 Bug Report
I have work on react native before and it was work fine
after some working on python and install some packages
I start got this error when trying to initialize new project using this command : react-native init
I have update react native to latest version and try to reinstall it again but still same error
react-native-cli: 2.0.1 react-native: 0.59.1 node v11.12.0 npm 6.7.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:11 (1 by maintainers)
Top Results From Across the Web
The "path" argument must be of type string ... - Stack Overflow
I'm working on a project in React and ran into a problem that has me stumped. Whenever I run yarn start I get...
Read more >[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path ...
[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined · This story will cover three possible fixes: · 1:...
Read more >Why I got TypeError [ERR_INVALID_ARG_TYPE]: The "path ...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null at new NodeError (node:internal/errors:278:15) ...
Read more >typeerror [err_invalid_arg_type]: the "path" argument must be ...
getting the following error after packaging the app using pkg. TypeError [ERRINVALIDARGTYPE]: The "path" argument must be of type string. Received an instance ......
Read more >The "url" argument must be of type string. Received undefined ...
The error says, provided url argument has a non-string value so make sure by printing/consol the url property has the correct value or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i had same issue “Could not debug. The “path” argument must be of type string. Received type undefined”
resolved by removing
“outDir”: “${workspaceRoot}/.vscode/.react” and added “cwd”: “${workspaceRoot}” in launch.json
code sample:
{ “name”: “Debug Android”, “program”: “${workspaceRoot}/.vscode/launchReactNative.js”, “type”: “reactnative”, “request”: “launch”, “platform”: “android”, “sourceMaps”: true, “cwd”: “${workspaceRoot}” }, { “name”: “Debug iOS”, “program”: “${workspaceRoot}/.vscode/launchReactNative.js”, “type”: “reactnative”, “request”: “launch”, “platform”: “ios”, “sourceMaps”: true, “cwd”: “${workspaceRoot}” },
@temchannat I fixed by following commands:
react-native init awesomeApplication --version "0.58.6"
Hope this helps !!
😇