angular-svg-round-progressbar
angular-svg-round-progressbar copied to clipboard
ionic aot typescript issue version 1.2.1
error
[03:49:43] typescript error
Error during template compile of 'RoundProgressModule' Function expressions are not supported in decorators
in 'NgModule' 'NgModule' contains the error at @angular/core/core.ts(194,31) Consider changing the function
expression into an exported function.
context
cli packages: (/Users/eraldo/Documents/colegend/coapp_project/colegend/node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 3.1.6
Cordova Platforms : android 6.2.3 browser 4.1.0 ios 4.4.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.0.2
Node : v9.2.1
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : /Users/eraldo/Library/Android/sdk
packages
{
"name": "...",
"author": "Eraldo Energy",
"homepage": "...",
"version": "0.0.30",
"description": "...",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "^5.1.2",
"@angular/compiler": "^5.1.2",
"@angular/compiler-cli": "^5.1.2",
"@angular/core": "^5.1.2",
"@angular/forms": "^5.1.2",
"@angular/http": "^5.1.2",
"@angular/platform-browser": "^5.1.2",
"@angular/platform-browser-dynamic": "^5.1.2",
"@angular/tsc-wrapped": "^4.4.6",
"@ionic-native/core": "^4.5.2",
"@ionic-native/date-picker": "^4.5.2",
"@ionic-native/google-plus": "^4.5.2",
"@ionic-native/splash-screen": "^4.5.2",
"@ionic-native/status-bar": "^4.5.2",
"angular-svg-round-progressbar": "^1.2.1",
"angular2-elastic": "^0.13.0",
"angular2-hotkeys": "^2.0.3",
"angular2-moment": "^1.7.1",
"apollo-angular": "^0.13.3",
"apollo-angular-link-http": "^1.0.1",
"apollo-cache-inmemory": "^1.1.4",
"apollo-client": "^1.9.3",
"autoprefixer": "^7.2.3",
"cordova-android": "^7.0.0",
"cordova-ios": "^4.5.4",
"cordova-plugin-console": "^1.1.0",
"cordova-plugin-datepicker": "^0.9.3",
"cordova-plugin-device": "^2.0.0",
"cordova-plugin-googleplus": "^5.1.1",
"cordova-plugin-splashscreen": "^5.0.0",
"cordova-plugin-statusbar": "^2.4.0",
"cordova-plugin-whitelist": "^1.3.3",
"crypto-md5": "^1.0.0",
"graphql": "^0.12.3",
"graphql-tag": "^2.6.1",
"ionic-angular": "^3.9.2",
"ionic-plugin-deploy": "~0.6.7",
"ionic-plugin-keyboard": "^2.2.1",
"ionic2-rating": "^1.2.2",
"ionic2-super-tabs": "4.1.4",
"ionicons": "^3.0.0",
"moment": "^2.20.1",
"ng2-simplemde": "^2.0.0",
"ngx-md": "^3.1.0",
"rxjs": "^5.5.6",
"simplemde": "^1.11.2",
"sw-toolbox": "^3.6.0",
"zone.js": "^0.8.18"
},
"devDependencies": {
"@ionic/app-scripts": "^3.1.6",
"ionic": "^3.19.0",
"typescript": "^2.6.2"
},
"cordova": {
"plugins": {
"cordova-plugin-googleplus": {
"REVERSED_CLIENT_ID": "..."
},
"cordova-plugin-console": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-keyboard": {},
"ionic-plugin-deploy": {},
"cordova-plugin-datepicker": {}
},
"platforms": [
"android",
"ios"
]
}
}
If you need more info.. just tell me which one and I will try to provide it. :) Any ideas how to fix that?
This looks like the error that is thrown when you try to do something like:
providers; [
{provide: Something, useFactory: () => ...}
]
That being said, there aren't any cases in the progress circle where it uses a provider like this.
having same issue since upgrading to Angular 5. Did one of you find a solution ? @crisbeto @Eraldo
This seems to be a solution: https://github.com/faisal3325/angular5-svg-round-progressbar I have not tried it yet though.
Unfortunately angular5-svg-round-progressbar does not work for me since I am using the responsive attribute.
still an issue, any resolution?
typescript error Error during template compile of 'RoundProgressModule' Function calls are not supported in decorators in 'NgModule' 'NgModule' calls a function at @angular\core\core.ts(194,50).
only happens when trying to produce a build via: ionic cordova build android --prod --debug
running locally works just fine.
`Ionic:
ionic (Ionic CLI) : 4.0.1 Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.11
Cordova:
cordova (Cordova CLI) : 8.0.0 Cordova Platforms : android 7.1.1
System:
NodeJS : v8.11.3 npm : 5.6.0 OS : Windows 10 `
I have this same issue, any work arounds?
@jasonduff hey any solutions?
No news about this?
So before I build, I remove inner node_modules, then it works perfectly.
rm -rf node_modules/angular-svg-round-progressbar/node_modules