Hi everyone. I recently tried to build my project on a test server and it builds successfully. However, when I start the application and try to load the page, I receive the following error:
Error [ERR_REQUIRE_ESM]: require() of ES Module /node_modules/@sendbird/chat/sendbird.js from /build/node/main.5132a43a.js not supported.
Instead change the require of sendbird.js in /build/node/main.5132a43a.js to a dynamic import() which is available in all CommonJS modules.
I know this has to do with the @sendbird package being a module, but I can’t figure out how to solve it. Any help is appreciated