question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

Captureerror

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:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
sai905905commented, Nov 13, 2019

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}” },

4reactions
zsubzwarycommented, Mar 23, 2019

@temchannat I fixed by following commands: react-native init awesomeApplication --version "0.58.6"

Hope this helps !!

😇

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found