jotaijs / jotaijs/jotai-devtools

Fail to run with react 17

Open
#167 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
185
Forks
39
PR merge metrics
No merged PRs in 30d

Description

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 `` 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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure in a CRA project using react-app-rewired, React 17.0.2, and the current jotai-devtools package. Inspect the @mantine/core and @mantine/code-highlight versions involved, then establish a documented compatible setup or a fix that lets jotai-devtools imports compile with React 17.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
developer-experience, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.