Closed iNishant closed 4 years ago
Please provide your minimal reproduce demo here. I will check it ASAP
@Matrixbirds https://github.com/Ylurn/agora-web-nextjs you can use this. The local setup works but the build for prod is failing. I am also forcing lazy loading so that no code is loaded on server side.
@Matrixbirds https://github.com/Ylurn/agora-web-nextjs you can use this. The local setup works but the build for prod is failing. I am also forcing lazy loading so that no code is loaded on server side.
Our RTM web SDK only support client-side-rendering
solution with AMD module.
Maybe you need try to use script
tag to import RTM WebSDK in window object.
Yup solved it by lazyloading. Somehow the originally lazyloaded component was being built on the server during next.js 's static optimisation
I have a next.js ts setup instead of the given CRA. I can run the project locally successfully but when I build the project it throws this error