Skip to content
← Back to Community
can I ES6 import in a node js replit?
Profile icon
Dumb1

I declared type: "module" in package.json but I still got
"Uncaught SyntaxError: Cannot use import statement outside a module"
am I missing something?

Voters
Profile icon
sazz619
Profile icon
Dumb1