Closed as1605 closed 10 months ago
I am working on a CommonJS module, which uses Module as in Module.createRequire, however, Module is null so it is throwing errors
Module
Module.createRequire
null
Can you please let me know how to fix this?
Can you please provide a reproducible example with CodeSandbox or StackBlitz?
I am working on a CommonJS module, which uses
Module
as inModule.createRequire
, however, Module isnull
so it is throwing errorsCan you please let me know how to fix this?