metro icon indicating copy to clipboard operation
metro copied to clipboard

processDebuggerGetScriptSource in metro-inspector-proxy/src/Device.js is unable to return source

Open wood1986 opened this issue 2 years ago • 0 comments

Do you want to request a feature or report a bug? bug

What is the current behavior? When I use flipper to debug index.bundle?platform=android&dev=true&minify=false&app=com.rn0682&modulesOnly=false&runModule=true without enabling the JavaScript source map, it shows

ENOENT: no such file or directory, open '/Users/wood/Desktop/RN0682/http:/localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.rn0682&modulesOnly=false&runModule=true'

image

And I found

https://github.com/facebook/metro/blob/1a105ea4f91ff385b2fb5f4c5fcfedab3ec630dc/packages/metro-inspector-proxy/src/Device.js#L488-L510

This always throws an exception and makes me unable to access bundled js file.

If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.

git clone https://github.com/wood1986/RN0682 yarn install yarn android use flipper to debug

What is the expected behavior?

It should not read from this fs if metro server is used

Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.

wood1986 avatar Jun 16 '22 09:06 wood1986