Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to run with react 17 #167

Open
jotamodesto opened this issue Sep 17, 2024 · 2 comments
Open

Fail to run with react 17 #167

jotamodesto opened this issue Sep 17, 2024 · 2 comments

Comments

@jotamodesto
Copy link

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
Copy link
Member

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants