Cannot use import statement outside a module for npm package – Javascript
I am trying to use the npm package editly. import Editly from "editly" However when i try to import it i get this error. SyntaxError: Cannot use import statement outside a module at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1176:20) at Module._compile…