Giter VIP home page Giter VIP logo

Comments (11)

nirali-ga avatar nirali-ga commented on June 3, 2024 1

Hello,
In your angular App if you have submodules and inside that module's component file if you are trying to implement any chart , you will get above error, but if you import same things and other code as you do in app.module.ts as mentioned in API doc and usage then your problem will get solved.I dont know this is ideal solution or not but I have done this and removed this code from main app.module.ts.

Hope this helps someone.

from angular-highcharts.

cebor avatar cebor commented on June 3, 2024

Can you show your app.module.ts ?

from angular-highcharts.

superestze avatar superestze commented on June 3, 2024
  • youvshould import the chartModel into app.module.ts or current index.ts

from angular-highcharts.

cebor avatar cebor commented on June 3, 2024

Closing this, feel free to reopen!

from angular-highcharts.

th0g0th avatar th0g0th commented on June 3, 2024

@superestze I got a same issue. But I can't find any chartModel here? Can you show me?

from angular-highcharts.

cebor avatar cebor commented on June 3, 2024

@th0g0th please post you app.module.ts

from angular-highcharts.

th0g0th avatar th0g0th commented on June 3, 2024

@cebor I'm using angular-seed.
If i change [chart] to ([chart]), this error will not show. But the highcharts will not display also.

<div ([chart])="chart"></div>

app.module.ts

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { APP_BASE_HREF } from '@angular/common';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';

import { AboutModule } from './about/about.module';
import { HomeModule } from './home/home.module';
import { SharedModule } from './shared/shared.module';
import { ChartModule } from 'angular-highcharts';

@NgModule({
  imports: [BrowserModule, HttpModule, AppRoutingModule, AboutModule, HomeModule, ChartModule, SharedModule.forRoot()],
  declarations: [AppComponent],
  providers: [{
    provide: APP_BASE_HREF,
    useValue: '<%= APP_BASE %>'
  }],
  bootstrap: [AppComponent]

})
export class AppModule { }

system.config.js

    packages: {
      highcharts: {
        main: './highcharts.js',
        defaultExtension: 'js'
      },
      'angular-highcharts': {
        main: './angular-highcharts.js',
        defaultExtension: 'js'
      }
    }

from angular-highcharts.

cebor avatar cebor commented on June 3, 2024

Appmodule seems to be configured correct.

Maybe you have to import it also in the submodule where you using it within.

from angular-highcharts.

cebor avatar cebor commented on June 3, 2024

@th0g0th i see you using systemjs, please try to use ./angular-highcharts.umd.js

from angular-highcharts.

th0g0th avatar th0g0th commented on June 3, 2024

@Cedor It’s not working.

Maybe you can try using your angular-highcharts on angular-seed to easy to test.

from angular-highcharts.

cebor avatar cebor commented on June 3, 2024

@th0g0th if you create a repo where this issue is reproducible i can take look at it.

from angular-highcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.