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 in Worklight 7.1 #45

Closed
sunilmhetre opened this issue Apr 1, 2016 · 1 comment
Closed

Comments

@sunilmhetre
Copy link

Hi,
I have used plugin in worklight 7.1 hybrid project, when I run the project following error has occured
On browser- Uncaught ReferenceError: module is not defined
on android device - undefined is not a function
When I made following changes in diagnostic.js it worked fine
window.Diagnostic = window.Diagnostic || {};
window.Diagnostic = new Diagnostic();

@dpa99c
Copy link
Owner

dpa99c commented Apr 1, 2016

As stated in the documentation: The plugin is exposed via the cordova.plugins.diagnostic object

On browser- Uncaught ReferenceError: module is not defined

The plugin is intended to provide diagnostic utilities in native mobile environments, so will not work in the browser

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

2 participants