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
188 stars 11 forks source link

Missing "./cjs/types/True" specifier in "@uiw/react-json-view" package #45

Open irom77 opened 5 months ago

irom77 commented 5 months ago

Getting this error today , even for v1.12.0

[commonjs--resolver] Missing "./cjs/types/True" specifier in "@uiw/react-json-view" package error during build: Error: Missing "./cjs/types/True" specifier in "@uiw/react-json-view" package

jaywcjlove commented 5 months ago

@irom77 Upgrade 2.0.0-alpha.21, You are using API version 2.0.0-alpha.21.

irom77 commented 5 months ago

Same error in version 2.0.0-alpha.21

jaywcjlove commented 5 months ago

@irom77 You can provide an example that reproduces the error, and I can take a look for free. I'm sure the file exists.

image
irom77 commented 5 months ago

Really appreciate. Right, file exists.. .Maybe I am not using collapsed correctly. I just tried {True} like below Also {1} etc.

`

`

How do I use integer instead of false/true, just collapsed={1} ?

jaywcjlove commented 5 months ago

Really appreciate. Right, file exists.. .Maybe I am not using collapsed correctly. I just tried {True} like below Also {1} etc.

<JsonView value={example} collapsed={True} />

How do I use integer instead of false/true, just collapsed={1} ?

@irom77 You might need an intermediate layer to handle your data, converting specific data from true or false to the desired 1 and 2.