next.js – How to properly implement toast-ui/calendar in nextjs

I am trying to implement @toast-ui/react-calendar, initially I was getting window is not defined but after implementing the fix I got here https://github.com/nhn/toast-ui.react-calendar/issues/39, I got this instead Unhandled Runtime Error Error: Element type is invalid: expected a string (for built -in components) or a class/function (for composite components) but got: object. You likely forgot to … Read more