Open pappk opened 2 years ago
Is there an update coming for this?
@matthewtquinn1 what is the issue are you facing
Hi @AyanBhadury, I've asked a more accurate question now in my own issue: https://github.com/fusioncharts/angular-fusioncharts/issues/140
The problem is not necessarily compatibility with Angular, the Fusioncharts code itself is fine. The problem is in the peerDependencies declaration in angular-fusioncharts (here: https://github.com/fusioncharts/angular-fusioncharts/blob/develop/dist/package.json#L37) and occurs during installation. If the package is preinstalled, and you then switch the Node version, the problem does not occur.
If you would change "@angular/core": "^4.0.0", to "@angular/core": ">=4.0.0", I think that would already solve the issue. A google search for "npm peer dependency multiple versions" provides more examples.
Here is a really small package.json which demonstrates the issue. If you switch to NPM 8 before running npm install (I tested this using nvm) and then install, the error occurs.
{
"name": "standard-ui",
"version": "0.0.0",
"private": true,
"dependencies": {
"@angular/common": "~12.2.0",
"@angular/compiler": "~12.2.0",
"@angular/core": "~12.2.0",
"@angular/platform-browser": "~12.2.0",
"@angular/platform-browser-dynamic": "~12.2.0",
"angular-fusioncharts": "^3.2.0",
"fusioncharts": "^3.18.0",
"rxjs": "~6.6.3",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
}
}
@itfusion
Please allow for an wider range of Angular package version in your package.json
. This package is the only package requiring us to use force upgrades.
E.g.
npx @angular/cli@latest update @angular/core @angular/cli --force
Or via --legacy-peer-deps
.
Are there any plans to support Angular 14?
@shineski yes, but right now upto 13.x is supported you can clone the repo and update the dependencies to make it angular 14 compatible
In the meantime Angular 15 was released: https://blog.angular.io/angular-v15-is-now-available-df7be7f2f4c8
https://github.com/fusioncharts/angular-fusioncharts/blob/586de8a761509f7a0aa8c30c5f8cd9fe2b750dc8/package.json#L49
Description
The project has a hard dependency for @angular/core@^4.0.0 and other angular modules with the same 4.0.0 version. However, it causes unresolved dependency problems with newer Angular versions. With the latest NodeJS (v16.13.0) and NPM (v8.1.3) version, this problem even blocks a standard
npm install
command in a project if it has the angular-fusioncharts package as a dependency.Reproduction
NodeJS: v14.18.1 npm: v6.14.15
A freshly generated project with Angular CLI package.json
Execute:
npm install
Output:
With newer NPM (v8.1.3) the install doesn't even executed due to the following error:
To bypass this error, the only way how the project's dependencies can be installed is the following way:
The hardcoded outdated dependencies should be removed from the fusioncharts' package.json file.