jotaijs / jotai-devtools

A powerful toolkit to enhance your development experience with Jotai
https://jotai.org/docs/tools/devtools
MIT License
124 stars 29 forks source link

Uncaught ReferenceError: process is not defined (jsondiffpatch) #100

Closed maylortaylor closed 10 months ago

maylortaylor commented 11 months ago

Whenever i add the component, my app gets an error. using version -- "jotai-devtools": "^0.6.2"

runtime.js:39 Uncaught ReferenceError: process is not defined at eval (index.js:6:13) at ./node_modules/jsondiffpatch/node_modules/supports-color/index.js (main.js:139097:1) at options.factory (runtime.js:620:31) at __webpack_require__ (runtime.js:36:33) at fn (runtime.js:277:21) at eval (index.js:3:52) at ./node_modules/jsondiffpatch/node_modules/chalk/source/index.js (main.js:139023:1) at options.factory (runtime.js:620:31) at __webpack_require__ (runtime.js:36:33) at fn (runtime.js:277:21)

arjunvegda commented 11 months ago

Hi @maylortaylor

That's odd, we fixed this issue a while ago. Could you please try removing jotai-devtools completely and re-installing it? I wonder if it's a caching issue.

maylortaylor commented 11 months ago

Hi @maylortaylor

That's odd, we fixed this issue a while ago. Could you please try removing jotai-devtools completely and re-installing it? I wonder if it's a caching issue.

I just did this script rm -rf node_modules && rm -rf packge-lock.json && npm cache clean --force && npm install and updated to jotai-devtools: '^0.6.3' and i am still getting this error whenever i insert <DevTools /> into my App.tsx file. If i remove that line, the app runs without any errors.

image

arjunvegda commented 11 months ago

Could @maylortaylor help create a small repro? https://csb.jotai.org/

arjunvegda commented 10 months ago

Closing this for now, I'm assuming it fixed itself? Please feel free to reopen it if the issue still persists.