I have been trying to integrate react native canvas in my app.
I followed the instructions exactly in https://www.npmjs.com/package/react-native-canvas.
When I run the app, I got the following error.

ATM, I don't have any babel or webpack config files and I am writing an app in Next.js.
Should there be any configs for that or modules to be installed?
I would appreciate any help.