kumarmanishc opened a new issue #873:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/873
# Bug Report
## Problem
Inappbrowser is not initialising.
### What is expected to happen?
When I compile code it gives error as,
'InAppBrowser' refers to a value, but is being used as a type here. Did you
mean 'typeof InAppBrowser
### What does actually happen?
'InAppBrowser' refers to a value, but is being used as a type here. Did you
mean 'typeof InAppBrowser
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
`// importing in app browser.
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
// imported in constructor
constructor(private iab: InAppBrowser, private router: Router) {}
// creating browser
myfunction(){
this.iab.create(URL.donate_url, '_self', browserOption);
}`
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
"cordova-plugin-inappbrowser": "^5.0.0",
Ionic:
Ionic CLI : 6.14.1
(/home/swastik/.nvm/versions/node/v12.18.4/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.6.6
@angular-devkit/build-angular : 0.1102.12
@angular-devkit/schematics : 11.2.12
@angular/cli : 11.2.12
@ionic/angular-toolkit : 3.1.1
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : android 9.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0,
cordova-plugin-ionic-webview 4.2.1, (and 6 other plugins)
Utility:
cordova-res (update available: 0.15.3) : 0.15.1
native-run (update available: 1.3.0) : 1.2.0
System:
Android SDK Tools : 26.1.1 (/home/swastik/Android/Sdk)
NodeJS : v12.18.4
(/home/swastik/.nvm/versions/node/v12.18.4/bin/node)
npm : 6.14.13
OS : Linux 5.4
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]