Closed sanjipun closed 2 years ago
import dynamic from 'next/dynamic'; const Chart = dynamic(() => import('kaktana-react-lightweight-charts'), { ssr: false });
import dynamic from 'next/dynamic'; const Chart = dynamic(() => import('kaktana-react-lightweight-charts'), { ssr: false });
I already solved it. But thanks anyways.
import dynamic from 'next/dynamic'; const Chart = dynamic(() => import('kaktana-react-lightweight-charts'), { ssr: false });
I already solved it. But thanks anyways.
how did you solve it?
import dynamic from 'next/dynamic'; const Chart = dynamic(() => import('kaktana-react-lightweight-charts'), { ssr: false });
I already solved it. But thanks anyways.
how did you solve it?
Check @ahmaddie1378's solution. That's is exactly how I solved it.
to avoid Promises' warnings add .then()
import dynamic from 'next/dynamic';
const Chart = dynamic(() => import('kaktana-react-lightweight-charts').then(module => module.default), {
ssr: false
});