installed the package and tanstak-query plugin:
pnpm i -D rn-devtools
pnpm i @rn-devtools/plugin-sdk
pnpm i @rn-devtools/react-query-plugin
pnpm i -D @tanstack/react-query-devtools
added the config file as per the doc, including only the plugin installed.
than ran pnpm rn-devtools (docs say to run it without a package manager, but for it to work it should be installed globally).
The UI didn't come up (white page), and my console output looked like this:
% pnpm rn-devtools
[rn-devtools] Vite root: /Users/myself/code/project-name/node_modules/rn-devtools
[rn-devtools] Project root: /Users/myself/code/project-name/node_modules/rn-devtools
[rn-devtools] Config file: null
[rn-devtools] Server is running at http://localhost:35515
[rn-devtools] Found plugins (from config): []
so it looked for the config in its own folder instead of the project root, and failed
I've put the config into the package folder just for experiment, it found the plugin but the page was still blank with a not too helpful react-dom_client.js?v=c86b4d13:16538 Uncaught TypeError: Cannot read properties of undefined (reading 'S') message in the console. So I decided to go on with the docs and hook my app to it.
When I did, I realized that my app still uses CJS, and it doesn't know how to deal with all the modules section of your package.jsons, and I got Unable to resolve errors. So I added the main field to the package.json of rn-devtools, and changed the main field in @rn-devtools/react-query-plugin's package.json. It resolved the module correctly, but I got The package at "../../../node_modules/rn-devtools/bin/index.js" attempted to import the Node standard library module "path". It failed because the native React runtime does not include the Node standard library.
I decided to stop here for now. What's the state of this package?
installed the package and tanstak-query plugin:
added the config file as per the doc, including only the plugin installed.
than ran
pnpm rn-devtools(docs say to run it without a package manager, but for it to work it should be installed globally).The UI didn't come up (white page), and my console output looked like this:
so it looked for the config in its own folder instead of the project root, and failed
I've put the config into the package folder just for experiment, it found the plugin but the page was still blank with a not too helpful
react-dom_client.js?v=c86b4d13:16538 Uncaught TypeError: Cannot read properties of undefined (reading 'S')message in the console. So I decided to go on with the docs and hook my app to it.When I did, I realized that my app still uses CJS, and it doesn't know how to deal with all the
modulessection of yourpackage.jsons, and I gotUnable to resolveerrors. So I added themainfield to thepackage.jsonofrn-devtools, and changed themainfield in@rn-devtools/react-query-plugin'spackage.json. It resolved the module correctly, but I gotThe package at "../../../node_modules/rn-devtools/bin/index.js" attempted to import the Node standard library module "path". It failed because the native React runtime does not include the Node standard library.I decided to stop here for now. What's the state of this package?