react-native-debugger icon indicating copy to clipboard operation
react-native-debugger copied to clipboard

react-native-debugger-open syntax error on RN 0.59.0-rc.3

Open jpaas opened this issue 7 years ago • 7 comments

React Native Debugger app version: NA - can't start metro React Native version: 0.59.0-rc.3 Platform: NA - can't start metro Is real device of platform: NA Operating System: macOS

using react-native-debugger-open 0.3.18 with RN 0.59.0-rc.3 I can't start the metro bundler because of the following syntax error caused by the rndebugger-open postinstall...

yarn run v1.13.0
$ node node_modules/react-native/local-cli/cli.js start --reset-cache
/Users/jpaas/Documents/osaaru/tapshot-react/node_modules/@react-native-community/cli/build/server/middleware/getDevToolsMiddleware.js:86
dule', {
    ^^^^

SyntaxError: Invalid or unexpected token

jpaas avatar Mar 02 '19 13:03 jpaas

I am experiencing the same issue on react-native 0.59 stable. Once I remove the post-install action, the problem is solved.

RemyLivewall avatar Mar 13 '19 14:03 RemyLivewall

@jhen0409 any updates on this? in #333 i describe another error and i don't think it's related to this issue. i still can't use react-native-debugger-open with RN 0.59

v0lume avatar Mar 22 '19 12:03 v0lume

Fixed in the npm package v0.3.19. Please ensure @react-native-community/cli version is ^1.5.0 in your lock file.

@v0lume, it looks different, but it is actually the same problem.

jhen0409 avatar Mar 24 '19 01:03 jhen0409

@jhen0409 thanks, it works now

v0lume avatar Mar 25 '19 12:03 v0lume

I am having this issue with v0.3.20 and @react-native-community/cli v2.9.0 again.

mxmzb avatar Aug 24 '19 16:08 mxmzb

@mxmzb I confirm!

yarn add -D @react-native-community/[email protected] as a workaround for now

alvelig avatar Aug 25 '19 22:08 alvelig

For me, under devDependencies I had react-native-debugger-open at version 0.3.19. I switched that to ^0.3.22 and it fixed it.

Shane-Loong avatar Jan 27 '20 22:01 Shane-Loong