dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
540 stars 361 forks source link

Ionic 3 import: The diagnostic name can not be found #337

Closed CiroDev-Git closed 5 years ago

CiroDev-Git commented 5 years ago

Bug report

import { Diagnostic } from '@ionic-native/diagnostic';

In app.module.ts: providers: [Diagnostic] The type 'DiagnosticOriginal' can not be assigned to the 'Provider' type. Type 'DiagnosticOriginal' is missing the following properties from type 'FactoryProvider': provide, useFactory [2322]

In a page: The diagnostic name can not be found constructor( private diagnostic: Diagnostic){}

Environment information

Runtime issue

Android build issue:

dpa99c commented 5 years ago

The Typescript wrapper for this plugin is provided and contained by Ionic Native so please open this issue against it.

This repo contains only the plugin code itself which is the pure JS plugin API and native code components.