`Uncaught ReferenceError: module is not defined` when importing halfmoon-module.js
OvermindDL1 opened this issue · 1 comments
OvermindDL1 commented
It looks like halfmoon-module.js
is not actually a mobule, it instead seems to be trying to lookup a module
in its global scope, which doesn't exist.
Seems this may be a CommonJS file perhaps, but its not a module, so is the file misnamed or is import
'ing it not actually the right way from a javascript module, and if not then how is it supposed to be imported into a javascript module?
OvermindDL1 commented
For note, replacing module.exports = halfmoon;
with export default halfmoon;
was sufficient enough for me to use it, if not correct (since it just put everything in the default export as an object instead of as their own individual imports).