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
I am trying to use react-charts-d3 in a SSR remix app (on cloudflare workers) and I get this error.
Normally I can do somthign like this to force a graphing library to only work in browser:
import{LineChart}from'react-charts-d3'exportdefaultfunctionChartLineMine({ data }){if(typeofwindow==='undefined'){returnnull}return(<LineChartdata={data}/>)}
I think there must be a top-level use of window or something, because it happens even if I don't return LineChart (just importing the library.)
The text was updated successfully, but these errors were encountered:
I am trying to use react-charts-d3 in a SSR remix app (on cloudflare workers) and I get this error.
Normally I can do somthign like this to force a graphing library to only work in browser:
I think there must be a top-level use of
window
or something, because it happens even if I don't returnLineChart
(just importing the library.)The text was updated successfully, but these errors were encountered: