You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
react and react-dom are optional peers but plot() and legend() need them #175
plot() (src/plotDom.ts on main) and legend() (src/legends.js) render through react-dom/server's renderToStaticMarkup, but package.json marks react and react-dom as optional in peerDependenciesMeta. Installing the package without React and calling Plot.plot() or Plot.legend() fails at runtime.
Fix: make react and react-dom required peers by removing them from peerDependenciesMeta.
Activity
dave-hillier commentedon Sep 24, 2026
Fixed and merged in #182 (merged as 8c86cfe):
304302f3 Require react and react-dom as peers