Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: module is not defined when importing halfmoon-module.js #109

Open
OvermindDL1 opened this issue Jul 21, 2021 · 1 comment
Labels
v1 Version 1.x.x

Comments

@OvermindDL1
Copy link

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
Copy link
Author

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).

@halfmoonui halfmoonui added the v1 Version 1.x.x label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1 Version 1.x.x
Projects
None yet
Development

No branches or pull requests

2 participants