Comments (5)
We made those breaking changes in v6 to encourage users to switch to module-less and to use the color generation plugin embedded in Chart.js directly. v6.0.0 is being released today. Will look into patching the issues for v5 as well soon.
from ng2-charts.
Same problem here using "ng2-charts": "^5.0.4" and Angular 17.2.0 in full standalone project mode.
I only installed as per instructions, created a component and ng server
: Module 'ng2-charts' has no exported member 'provideCharts', 'withDefaultRegisterables'.
from ng2-charts.
just updated to v6 beta 1. Error gone but had to remove from main.ts:
import { NgChartsModule } from 'ng2-charts';
in favour of:
import { provideCharts, withDefaultRegisterables } from 'ng2-charts';
and remove NgChartsModule
from providers: [ importProvidersFrom(provideCharts(withDefaultRegisterables())
from ng2-charts.
just updated to v6 beta 1. Error gone but had to remove from main.ts:
import { NgChartsModule } from 'ng2-charts';
in favour of:import { provideCharts, withDefaultRegisterables } from 'ng2-charts';
and remove
NgChartsModule
fromproviders: [ importProvidersFrom(provideCharts(withDefaultRegisterables())
Thank you! It's working now, but it's not ideal. I can't use a beta version in production. I will wait for the new version or they fix it on v5.
from ng2-charts.
I guess a fix will be coming soon?
from ng2-charts.
Related Issues (20)
- "bar" is not a registered controller HOT 2
- Module '"ng2-charts"' has no exported member in v6 HOT 1
- V6 Annotation Typing issues HOT 3
- Integrate into Angular 17 project without standalone components HOT 1
- Could not resolve dependency Angular 16 @angular/[email protected] HOT 1
- v6 with Angular 17, cant bind properties HOT 1
- The plugin chartjs-plugin-zoom doesn't wotk anymore with 6.0.0 HOT 1
- Path "[...]/node_modules/ng2-charts/schematics/src/collection.json" does not exist. HOT 3
- is there an example for non-standalone mode? HOT 1
- Chart components registration errors HOT 1
- Issue with ng-charts compatibility with the latest TypeScript version HOT 1
- How to register ng2-charts v6 with Angular 17 HOT 1
- Label property is missing for pie chart HOT 3
- Unable to add dragData plugin to line chart in Angular 17 HOT 2
- EventEmitter type is `object`, should be `ActiveElement`
- how to configure eslint-plugin-header (version 3.1.1) with new eslint (9.4.0) which has flat config file (eslint.config.mjs) HOT 1
- ng2-charts v6 or v5 problem with angular 17 HOT 2
- Angular 18 support and chart.js interop in v6.0.1 HOT 1
- Cant install ng2-charts because of eslint dependancy
- Compile error on `Cannot find module 'chart.js/dist/types/utils' or its corresponding type declarations` with chartjs v3 HOT 1
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 ng2-charts.