Closed Deewarz closed 6 months ago
This syntax is not supported, you need to use another option:
// index.js
const vehicles = require("./src/code/vehicles.js");
// ./src/code/vehicles.js
console.log("Hello from vehicles.js");
output:
Ah yes, CommonJS!
My bad, thank you!
That's something we will address once everything else is stabilized, but for now you'd have to stick to CommonJS
Example
Error log