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

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

Open
irom77 opened this issue Mar 29, 2024 · 5 comments
Open

Comments

@irom77
Copy link

irom77 commented Mar 29, 2024

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

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

@irom77
Copy link
Author

irom77 commented Mar 30, 2024

Same error in version 2.0.0-alpha.21

@jaywcjlove
Copy link
Member

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

irom77 commented Mar 30, 2024

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} ?

@jaywcjlove
Copy link
Member

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.

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