Getting WebGL Javascript to work with Next.js

Job ID: 33161639

Budget: £20 – £250 GBP

I'm having issues getting a WebGL Javascript to work with Next.js and I need someone to fix the problem. I've attached the error that I'm getting in Next.js along with a picture of the code I'm using.

I've managed to get it working in React and just need some helping getting the code to work in Next.js.

I've attached the script I want to get to work.

Cheers!
Related categories: JavaScript React.js React.js Framework Next.js