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

Uncaught Error: Can't resolve all parameters for HighchartsService: (?) #250

Open
TroyTaylor opened this issue Jan 9, 2018 · 0 comments

Comments

@TroyTaylor
Copy link

On app.module.ts I have:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule, JsonpModule } from '@angular/http';
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';

import { ChartModule } from 'angular2-highcharts';

import { AppComponent } from './app.component';

import { APP_CONFIG, TagVal_AppConfig } from './app.config';

import { AppRoutingModule } from './app-routing.module';
import { TradePageComponent } from './components/trade-page/trade-page.component';
@NgModule({
    imports: [
        BrowserModule,
        AppRoutingModule,
        FormsModule,
        HttpModule,
        HttpClientModule,
        ChartModule.forRoot(require('highcharts')),
        JsonpModule,
    ],
    declarations: [
        AppComponent,
        TradePageComponent,
    ],
    providers: [
        { provide: APP_CONFIG, useValue: TagVal_AppConfig },
    ],
    bootstrap:    [ AppComponent ],
})
export class AppModule { }

I also import ChartModule on the component I'm trying to put my chart in, but I get this error: Uncaught Error: Can't resolve all parameters for HighchartsService: (?).

I don't a site to run it live, but my project is here: https://github.com/TroyTaylor/binance-app

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