Closed RaisinTen closed 5 months ago
The variable holding the function returned by createRequire() is named req but the require function is being used below, so require is undefined here. This fixes that by ensuring that both variable names are the same.
createRequire()
req
require
Thanks!
The variable holding the function returned by
createRequire()
is namedreq
but therequire
function is being used below, sorequire
is undefined here. This fixes that by ensuring that both variable names are the same.