-
Notifications
You must be signed in to change notification settings - Fork 86
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
ReferenceError: module is not defined when used with node-webkit #77
Comments
Sure! Feel free to submit a PR, if you want to see this implemented. I didn't find any reference to global.module in the latest NW.js documentation, so maybe this is stale? |
What is the status of this issue and its fix? |
@bradtaniguchi Thanks for confirming that the aforementioned fixed worked for you. Honestly, I'm open to reviewing a PR, since I don't use NW.js. Are you interested/willing to submit a PR for this fix? |
@scotttrinh |
Now the factory assignment for localforage is applied to `global.modules.exports` instead of `modules.exports` if `module` is undefined. `module` is undefined in an NW.js environment (for whatever reason). So now we check for module and we uses global if `module` is undefined. Otherwise we proceed as before. Thank @ashleyhindle for fix. Fixes scotttrinh#77
Thanks @bradtaniguchi for the PR. New version published to NPM and Bower this morning! |
[94867:0820/103228:ERROR:nw_shell.cc(336)] ReferenceError: module is not defined at file://node_modules/angular-localforage/dist/angular-localForage.min.js:8:221
If I prepend this line with 'global.' it works as expected:
to
Should it check for module/global.module and use the right one?
The text was updated successfully, but these errors were encountered: