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(…) on some sites #318

Closed
mttwc opened this issue Nov 17, 2016 · 0 comments
Closed

Uncaught ReferenceError: module is not defined(…) on some sites #318

mttwc opened this issue Nov 17, 2016 · 0 comments

Comments

@mttwc
Copy link
Contributor

mttwc commented Nov 17, 2016

Hi! We use URI.js in a multi-browser extension that we are developing, and we are running into an issue on https://mochajs.org/ where URI.js tries to access modules.export when modules is undefined. This is because on this site, the exports variable is being used for something, so if (typeof exports === 'object') will return true when it shouldn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant