You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/08 20:20:36 UTC

[GitHub] ravigohil999 opened a new issue #344: Error after adding the plugin to app.module.ts

ravigohil999 opened a new issue #344: Error after adding the plugin to app.module.ts
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/344
 
 
   I installed the plugin as mentioned in the online doc.
   https://ionicframework.com/docs/native/in-app-browser/
   
   However, when I imported the plugin in app.module.ts and added it to the providers, I started getting an error. 
   Uncaught TypeError: Object(...) is not a function
       at VM498 vendor.js:65187
       at Module../node_modules/@ionic-native/in-app-browser/index.js (VM498 vendor.js:65223)
       at __webpack_require__ (VM491 runtime.js:84)
       at Module../src/app/app.module.ts (VM499 main.js:1755)
       at __webpack_require__ (VM491 runtime.js:84)
       at Module../src/main.ts (VM499 main.js:1838)
       at __webpack_require__ (VM491 runtime.js:84)
       at Object.0 (VM499 main.js:1861)
       at __webpack_require__ (VM491 runtime.js:84)
       at checkDeferredModules (VM491 runtime.js:46)
   
   I tried building the app for android and ran it on an android device. The home page is blank. I removed the import statement from app.module.ts and from the providers, the app worked and could see the html code.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org