dop251 / goja_nodejs

Nodejs compatibility library for Goja
MIT License
336 stars 81 forks source link

could you help me understand the example on README #51

Closed sharonliao closed 1 year ago

sharonliao commented 1 year ago

Hi, I copied the example provided in README and ran it. But I got two error "Invalid module". Not sure where got wrong, Could you help me make it work?

image
sharonliao commented 1 year ago

Ok, I figured out that issue of my code, the module path wasn't correct, it should be "./m.js" instead of "m.js" in this case