uiwjs / react-json-view

A React component for displaying and editing javascript arrays and JSON objects.
https://uiwjs.github.io/react-json-view/
MIT License
212 stars 12 forks source link

Theme imports don't work #36

Open suhjohn opened 7 months ago

suhjohn commented 7 months ago
Screenshot 2024-03-10 at 12 01 46 AM Screenshot 2024-03-10 at 12 01 53 AM

Pretty straightforward issue. 2.0.0-alpha.17

jaywcjlove commented 7 months ago

@suhjohn Upgrade v2.0.0-alpha.18

ductridev commented 6 months ago

@uiw/react-json-view: ^2.0.0-alpha.24 error: Error: Unable to resolve module @uiw/react-json-view/light

jaywcjlove commented 6 months ago
image

@ductridev It seems to be working.

image
ductridev commented 6 months ago

Just need to run npm i @uiw/react-json-view right?

jaywcjlove commented 6 months ago

@ductridev npm i @uiw/react-json-view@2.0.0-alpha.24

ductridev commented 6 months ago

Ah, still same even file exists.

error: Error: Unable to resolve module @uiw/react-json-view/light from G:\Android\xxx\src\screens\Tab.tsx: @uiw/react-json-view/light could not be found within the project or in these directories:
  node_modules
  11 | import JsonView from '@uiw/react-json-view';
> 12 | import { lightTheme } from '@uiw/react-json-view/light';
jaywcjlove commented 6 months ago

@ductridev I can't assist you as I can't reproduce your error.

jrodden1 commented 2 months ago

What versions of React are you guys using? @jaywcjlove @ductridev I wonder if one is on 18 and one on 17? Perhaps that why @jaywcjlove wasn't able to repro the issue?

I'm on 17 and I'm getting that same lightTheme error on 2.0.0-alpha.26 🤔

jaywcjlove commented 2 months ago

@jrodden1 You can provide me with an example that reproduces the error, and I can take a look at it for you.