Open nshen opened 2 years ago
The same thing is happening to me, but with other libs! I do not yet know how to fix that error.
hi @mysticaltech this is due to ssr ssg relative things, I solved by dynamic import it
// fix ssr error
if (isClient()) {
// @ts-ignore
import('echarts-liquidfill');
}
/**
* nextjs-utils
*/
export function isClient(): boolean {
return typeof window !== 'undefined';
}
Thanks for the info, my problem is that I do not even know where the issue comes from as tracing is not showing anywhere! Also not using this very library the issue belongs to.