Closed wedelgaard closed 2 years ago
This explicit line fails when used in a Remix.run app:
ReactFC.fcRoot(FusionCharts, Column2D, GammelTheme)
I'm getting this error:
ReferenceError: document is not defined
It makes sense since Remix use SSR, but even if I use this safe guard it fails (recommended approach from Remix docs):
if (typeof document !== 'undefined') { ReactFC.fcRoot(FusionCharts, Column2D, GammelTheme) }
This explicit line fails when used in a Remix.run app:
ReactFC.fcRoot(FusionCharts, Column2D, GammelTheme)
I'm getting this error:
ReferenceError: document is not defined
It makes sense since Remix use SSR, but even if I use this safe guard it fails (recommended approach from Remix docs):