brightlayer-ui / chartjs

ChartJS configuration objects for Brightlayer UI
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CodeSandbox Not Working for React #29

Open emclaug2 opened 2 years ago

emclaug2 commented 2 years ago

Describe the bug

Codesandbox demo doesn't work for React, even after adding the pollyfill dependency that's causing the initial error.

What is the expected behavior?

It runs.

What are the steps to reproduce?

https://codesandbox.io/s/github/brightlayer-ui/chartjs/tree/feature/missing-dep/react-demo?file=/src/App.tsx

Screenshots or links to minimum reproduction example

Environment

Anything else to add?

No

jeffvg commented 2 years ago

check to see if this runs locally and check dependencies

image

daileytj commented 2 years ago

Tested it locally and it works just fine. Looks like this is an issue with how codesandbox is handling dependencies.

emclaug2 commented 2 years ago

As part of this story, maybe try to update to React 18. Using a completely new dep set might fix the sandbox issue.