jotaijs / jotai-devtools

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

Fail to run with react 17 #167

Open jotamodesto opened 1 month ago

jotamodesto commented 1 month ago

I'm having issues running the devtools in a project created with CRA and react-app-rewired, React is in version 17.0.2, jotai and jotai-devtools are both in latest version but when trying to run it's returning the message.

Failed to compile.

./node_modules/jotai-devtools/node_modules/@mantine/code-highlight/esm/CodeHighlightTabs.mjs
Attempted import error: 'ActionIcon' is not exported from '@mantine/core'.

This message pops with any imports I try to use, not only the <DevTool /> component, if I don't use anything from jotai-devtools then the project runs as expected.

From what I've seen, mantine expects react 18, but I can't upgrade react right now.

Is there any solution? I don't mind downgrading jotai and jotai-devtools but I don't know which version to use.

arjunvegda commented 1 month ago

Thanks for reaching out @jotamodesto.

You could try using v0.8.0 but note that it may not support the latest version of Jotai. FWIW, we're working on moving away from @mantine/* so hopefully we can add back the support for react 17 soon

jotamodesto commented 1 month ago

I'll try to find a version of Jotai that work with this version of devtools. When this new version comes out I'll update.

Thank you.