react-json-view icon indicating copy to clipboard operation
react-json-view copied to clipboard

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

Open irom77 opened this issue 1 year ago • 5 comments

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

irom77 avatar Mar 29 '24 18:03 irom77

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

jaywcjlove avatar Mar 30 '24 02:03 jaywcjlove

Same error in version 2.0.0-alpha.21

irom77 avatar Mar 30 '24 13:03 irom77

@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

jaywcjlove avatar Mar 30 '24 13:03 jaywcjlove

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 avatar Mar 30 '24 14:03 irom77

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.

jaywcjlove avatar Mar 30 '24 18:03 jaywcjlove