Skip to content

Commit f11a2dd

Browse files
Add ESM / CommonJS compatibility workaround
1 parent 937f588 commit f11a2dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/AssistantView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import Plot from 'react-plotly.js';
1+
import PlotModule from 'react-plotly.js';
2+
const Plot: typeof PlotModule = ((PlotModule as any).__esModule === true) ? (PlotModule as any).default : PlotModule
23
import React from 'react'
34
import ReactDOM from 'react-dom';
45

0 commit comments

Comments
 (0)