Closed user28111999 closed 3 years ago
require() of ES modules is not supported.
Are you using require("canvas-record")
in an es module or have a transform on your code that changes everything to cjs? You might need to change the way you import things: https://nodejs.org/api/esm.html#esm_differences_between_es_modules_and_commonjs
require() of ES modules is not supported.
Are you using
require("canvas-record")
in an es module or have a transform on your code that changes everything to cjs? You might need to change the way you import things: https://nodejs.org/api/esm.html#esm_differences_between_es_modules_and_commonjs
Thanks, this worked.
Getting this error in a ReactJS/NextJS environment. Same error happens with the latest versions of Firefox and Chrome
I did import
canvasRecord
andcanvasContext
like the example from the README.mdand I'm using the same example code in a
useEffect()`