question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Uncaught TypeError: Cannot call method 'apply' of undefined" while running Angular based on WebPack with Cordova. (solved)

See original GitHub issue

Do you want to request a feature or report a bug? Bug report.

What is the current behavior? While running Angular app with Cordova, I see only white screen on device and error “Uncaught TypeError: Cannot call method 'apply' of undefined in vendor.bundle.js:5706” in chrome://inspect/#devices. Angular not works in Cordova+WebKit nor Cordova+Crosswalk.

If the current behavior is a bug, please provide the steps to reproduce.

Configuration is in Angular master branch.

ng new App
cd App
cordova create cordova com.mycompany.app App
ng build --output-path=cordova/www/ --base-href .
cd cordova
cordova platform add android
cordova plugin add cordova-plugin-crosswalk-webview #optional
cordova run android

What is the expected behavior? No errors in console and “App works!” text on device screen.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System. Angular version: 4.2.4 (latest) Browser - Android WebView version 33 Browser - Crosswalk WebView version 23 Node version: 6.11.0 Platform: Windows 10 x64 Cordova version 7.0.1 Android version 4.4 KitKat Crosswalk version 23

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Aug 29, 2017

@ichorville (offtop) can you explain why most of devs are indians? XD

0reactions
ichorvillecommented, Aug 30, 2017

@z56 Asians probably lol 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot call method 'then' of undefined Angularjs
I am pretty new to Angular and have problems with making a synchronous operation. I have resolved few issues which came my way...
Read more >
Resolving the JavaScript Promise Error "TypeError: Cannot ...
And the TypeError indicates you are calling then() on undefined , which is a hint that the Promise itself is undefined .
Read more >
uncaught error: call to undefined method ... - You.com
webpack/webpack"Uncaught TypeError: Cannot call method 'apply' of undefined" while running Angular based on WebPack with Cordova. (solved)#5211.
Read more >
cordova-plugin-inappbrowser
The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs. For this reason, the InAppBrowser is recommended if you...
Read more >
Common errors and how to fix them - Mobiscroll Help Center
This error occurs when the Angular/Ionic application's typescript version is older than the minimum required by the Mobiscroll. Mobiscroll will need at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found