cordova-plugin-code-push icon indicating copy to clipboard operation
cordova-plugin-code-push copied to clipboard

Error loading

Open phyr0s opened this issue 5 years ago • 9 comments

Description

Running on physical device I get this error -->

[Error] Failed to load resource: the server responded with a status of 404 () (acquisition-sdk.js.map, line 0)

Reproduction

Just build and run the plugin on iOS device

Additional Information

  • cordova-plugin-code-push version: lastest

  • List of installed plugins: code-push 2.0.6 "CodePushAcquisition" cordova-plugin-app-version 0.1.9 "AppVersion" cordova-plugin-camera 4.0.3 "Camera" cordova-plugin-code-push 1.11.18 "CodePush" cordova-plugin-compat 1.2.0 "Compat" cordova-plugin-device 2.0.2 "Device" cordova-plugin-dialogs 2.0.2 "Notification" cordova-plugin-file 4.3.3 "File" cordova-plugin-file-opener2 2.2.0 "File Opener2" cordova-plugin-file-transfer 1.6.3 "File Transfer" cordova-plugin-inappbrowser 3.0.0 "InAppBrowser" cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.1.1 "cordova-plugin-ionic-webview" cordova-plugin-screen-orientation 3.0.1 "Screen Orientation" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" cordova-plugin-x-socialsharing 5.4.7 "SocialSharing" cordova-plugin-zip 3.1.0 "cordova-plugin-zip" cordova-sqlite-storage 3.2.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version" es6-promise-plugin 4.2.2 "Promise" phonegap-plugin-push 2.2.3 "PushPlugin" tealium-cordova-plugin 1.1.2 "TealiumCordova"

  • Cordova version: 9.0.0, lastest iOS and Android engines (5.0.1 and 8.0.0)

  • iOS/Android/Windows version: Lastest

  • Does this reproduce on a debug build or release build? All

  • Does this reproduce on a simulator, or only on a physical device? All

phyr0s avatar Jul 31 '19 09:07 phyr0s

Same issue here. have you found a fix/workaround yet?

dennis3001 avatar Nov 14 '19 14:11 dennis3001

Same for me... Any News? Only happens on iOS for me.

EinfachHans avatar Jan 29 '20 17:01 EinfachHans

i have the same issue .. any update?

Singh-KiaTec avatar Apr 19 '20 15:04 Singh-KiaTec

With last version is working but error still

phyr0s avatar Apr 20 '20 08:04 phyr0s

it worked when i followed below steps: ionic cordova plugin rm cordova-plugin-code-push npm uninstall --save @ionic-native/code-push@4 and then add the latest version ionic cordova plugin add cordova-plugin-code-push npm install @ionic-native/code-push

and then the magic remove the reference of .js.map file from plugin.xml <YOURPROJECT>/plugins/code-push/plugin.xml

Singh-KiaTec avatar Apr 20 '20 08:04 Singh-KiaTec

also make sure you use ngx version for sync. import { CodePush, InstallMode, SyncStatus } from '@ionic-native/code-push/ngx';

Singh-KiaTec avatar Apr 20 '20 08:04 Singh-KiaTec

Same problem happening on 1.12.5, when I run the ios app I get this error on the object inspector console:

[Error] Failed to load file://null/private/var/containers/Bundle/Application/5D6AC451-BE17-4578-AE31-D4B272AEB6DB/EasyEdu.app/www/plugins/code-push/script/acquisition-sdk.js.map resource: The requested URL was not found on this server. (acquisition-sdk.js.map, line 0)

I already tried to reinstall the plugin but it didn't solved the problem.

lucasdavila avatar Jul 15 '20 21:07 lucasdavila

+1

bbialas avatar Dec 15 '20 10:12 bbialas

I tried to fix this, but it doesn't appear to have any impact on the functionality of the app. If you turn off code maps in your debug tools, this error won't show up.

jacola avatar Dec 30 '20 05:12 jacola