Comments (11)
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.
Can you show your app.module.ts ?
from angular-highcharts.
- youvshould import the chartModel into app.module.ts or current index.ts
from angular-highcharts.
Closing this, feel free to reopen!
from angular-highcharts.
@superestze I got a same issue. But I can't find any chartModel here? Can you show me?
from angular-highcharts.
@th0g0th please post you app.module.ts
from angular-highcharts.
@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.
Appmodule seems to be configured correct.
Maybe you have to import it also in the submodule where you using it within.
from angular-highcharts.
@th0g0th i see you using systemjs, please try to use ./angular-highcharts.umd.js
from angular-highcharts.
@Cedor Itβs not working.
Maybe you can try using your angular-highcharts on angular-seed to easy to test.
from angular-highcharts.
@th0g0th if you create a repo where this issue is reproducible i can take look at it.
from angular-highcharts.
Related Issues (20)
- License HOT 4
- Thanks everyone and wish you all the best for the holiday season. HOT 1
- StockChart doesn't contain getSVG() method HOT 6
- CommonJS or AMD dependencies Warning HOT 1
- Cannot read property 'showLoading' of undefined
- activate plugin
- angular 13 incompatible HOT 1
- Is it possible to toggle full screen using a separate button. I am using Stock Chart?
- How to resize stock chart HOT 1
- Angular Server-side rendering (SSR) - issue
- Pie chart in lower to higher all datalabels not displayed in chart view (Opera, QQ, Other) datalable not available
- Cannot read properties of undefined (reading 'forExport')
- How it differs from highcharts-angular?
- Angular 15 incompatibility HOT 1
- Update flag adds new legend elements
- No peer dependency mentioning highcharts
- Angular 16 Compatibility - Error HOT 7
- Support for Angular v17 HOT 3
- [Bug] HighchartsGantt class HOT 1
- Add support ESbuild imports HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-highcharts.