Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module build failed #17

Open
juliogsantana opened this issue Feb 6, 2019 · 0 comments
Open

Module build failed #17

juliogsantana opened this issue Feb 6, 2019 · 0 comments

Comments

@juliogsantana
Copy link

Hi,

I'm trying this on Ionic. I followed the install instructions. Then added imports to app.module.ts

Ionic:
ionic (Ionic CLI) : 4.10.2
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.9

Cordova:

cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 7.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 9 other plugins)

System:

Android SDK Tools : 26.1.1
NodeJS : v8.0.0
npm : 6.7.0
OS : Linux 4.4

My app.module.ts:

import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';

import {GaugesModule} from 'ng-canvas-gauges/lib';

@NgModule({
  declarations: [
    MyApp    
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    GaugesModule,
    IonicModule.forRoot(MyApp),
    IonicStorageModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp
  ],
  providers: [
    SplashScreen,
    StatusBar,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}

ERROR

[```
12:39:19] ngc started ...
[12:39:22] typescript error
Unexpected value 'GaugesModule in
/../../../../node_modules/ng-canvas-gauges/lib/index.d.ts' imported by the module
'AppModule in /../../../../src/app/app.module.ts'. Please add a @NgModule
annotation.



Would you help me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant