SSR issues
According to the link
Version 2.6.1 works best. After updating to a higher version. it breaks. ex. 2.7
Please try to change to Version 2.6.1 and the latest version.
Update: 2.61 works with Pure reactjs but for an identical code snippet. It breaks with the Nextjs 13 with
GL_INVALID_OPERATION: Active draw buffers with missing fragment shader outputs.