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

🔧 Fixing the demo build #35

Merged
merged 3 commits into from
Sep 22, 2024

Conversation

VadimZvf
Copy link
Contributor

The demo doesn't work.
If we run the npm run build:demo command and if we open the resulting demo in the browser, we get a blank page with an error.

Screenshot 2024-08-17 at 12 38 34

It doesn't work because:

  1. We had a bug in the demo component, we were trying to spread a null value.
  2. CDN links were referring to react 15, this version doesn't have forwardRef yet. It was introduced in React 16.3 - https://github.com/facebook/react/blob/main/CHANGELOG.md#react-17

In this PR I'm fixing the demo build.

Copy link

vercel bot commented Aug 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-json-view ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 22, 2024 8:11pm

@VadimZvf
Copy link
Contributor Author

Screen.Recording.2024-08-17.at.12.44.05.mov

An example of the fix

We were trying to spead a null value
Rebuilding the demo
@Kikobeats Kikobeats force-pushed the VadimZvf/fixing-demo-build branch from b76fca7 to 45ea957 Compare September 22, 2024 20:11
@Kikobeats Kikobeats merged commit 3ee7516 into microlinkhq:master Sep 22, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants