tripflex / WifiWizard2

A Cordova plugin for managing Wifi networks (new version of WiFiWizard) - Latest is version 3+
https://www.npmjs.com/package/cordova-plugin-wifiwizard2
Apache License 2.0
123 stars 146 forks source link

some phone show error:Module wifiwizard2.WifiWizard2 does not exist. #41

Closed coloz closed 6 years ago

coloz commented 6 years ago

Prerequisites

Check all boxes if you have done the following:

Issue type

Select all that apply

Description

i have 5 phones,only one show error: [INFO:CONSOLE(57)] "Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode", source: file:///android_asset/www/plugins/wifiwizard2/www/WifiWizard2.js (57) I/chromium: [INFO:CONSOLE(1461)] "Uncaught Error: Module wifiwizard2.WifiWizard2 does not exist.", source: file:///android_asset/www/cordova.js (1461)

Versions

android 5.1 ionic 3

surajrao commented 6 years ago

I am seeing this in android version 4.4.4 (Samsung Galaxy tablet).

jack828 commented 6 years ago

Looks like it's due to this line: https://github.com/tripflex/WifiWizard2/blob/master/www/WifiWizard2.js#L56

I've forked this project and I'm currently resolving as many issues as I can - I'll let you both know once this is fixed in my fork.

(of course, I'll be submitting pull requests for everything I fix)

kalicki commented 6 years ago

Hey @jack828, Check this project: https://github.com/arsenal942/Cordova-Network-Manager @arsenal942 accepts fast pull reqeuest

jack828 commented 6 years ago

Thanks @kalicki, I'll check it out.

tripflex commented 6 years ago

Dohhh!!! Yeah sucks going to ES6/ES7 and having to come back to using var instead of let ... just an oversight on my part, my bad