paddymul / buckaroo-js-core

ISC License
1 stars 0 forks source link

Packaging via js-delivr doesn't work #2

Open paddymul opened 4 weeks ago

paddymul commented 4 weeks ago

https://codepen.io/paddymul/pen/XWvzZBE JSDelivr is failing to bundle buckaroo from the code here

JSDelivr url

import { extraComponents } from "https://cdn.jsdelivr.net/npm/buckaroo-js-core/+esm";

with an error of

Uncaught TypeError: d is null
    <anonymous> Transition.js:607
[Transition.js:607:19](https://cdn.jsdelivr.net/npm/react-transition-group@2.9.0/Transition.js)
paddymul commented 4 weeks ago

recharts depends on react-smooth, which depends on react-transition

paddymul commented 4 weeks ago

I was able to get this to work https://codesandbox.io/p/sandbox/simple-bar-chart-forked-7sxl8c

code sandbox has a full package.json setup

paddymul commented 4 weeks ago

0.8.2 also works. that build included recharts. https://codesandbox.io/p/sandbox/buckaroo-0-8-5-basic-working-forked-m8vplc?workspaceId=5d3c7e6a-4f10-4d63-b56a-6e222ec3935f