crisbeto / angular-svg-round-progressbar

Angular module that uses SVG to create a circular progressbar
https://crisbeto.github.io/angular-svg-round-progressbar/
MIT License
742 stars 173 forks source link

problems installing angular-svg-round-progressbar #127

Closed nicolasq92 closed 7 years ago

nicolasq92 commented 7 years ago

Hi everyone, i just install the angular-svg-round-progressbar with npm install angular-svg-round-progressbar --save

and initialize in the module with import {RoundProgressModule} from 'angular-svg-round-progressbar';

@NgModule({ imports: [RoundProgressModule] }) and I getiing this error.

ERROR in Error encountered resolving symbol values statically. 
Function calls are not supported. 
Consider replacing the function or lambda with a reference to an expor
tion (position 194:50 in the original .ts file), resolving symbol NgModule in /home/nicolas/Escritorio/proyect/node_modules/angular-svg-round-progressbar/
ules/@angular/core/core.d.ts, resolving symbol RoundProgressModule in /home/nicolas/Escritorio/proyect/node_modules/angular-svg-round-progressbar/dist/ind
 resolving symbol RoundProgressModule in /home/nicolas/Escritorio/proyect/node_modules/angular-svg-round-progressbar/dist/index.d.ts

this is my ng -v

@angular/cli: 1.0.0-rc.2
node: 6.10.0
os: linux x64
@angular/animations: 4.1.2
@angular/common: 2.4.10
@angular/compiler: 2.4.10
@angular/core: 2.4.10
@angular/forms: 2.4.10
@angular/http: 2.4.10
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 2.4.10
@angular/platform-browser-dynamic: 2.4.10
@angular/router: 3.4.10
@angular/cli: 1.0.0-rc.2
@angular/compiler-cli: 2.4.10

I dont know what to do now @crisbeto

crisbeto commented 7 years ago

What version of the progress circle are you using? Since you have Angular 2.4, you should use version 1.0.7 or lower. The latest version (1.1.0) requires Angular 4.0 or higher.

nicolasq92 commented 7 years ago

Oh, I'm using the latest version. There is a way to get the 1.0.7 version throught NPM for my project?

crisbeto commented 7 years ago

You should be able to do this:

npm install angular-svg-round-progressbar@1.0.7 --save
nicolasq92 commented 7 years ago

works, thank u'

shankargounder commented 6 years ago

@crisbeto Thanks its works...

anupammaurya commented 6 years ago

has no exported member 'ROUND_PROGRESS_DEFAULTS'.