lab123it / ng2-input-mask

Mask for Angular 2 Apps
MIT License
13 stars 7 forks source link

Calling function 'makeDecorator', function calls are not supported. #1

Open tiloreboucas opened 7 years ago

tiloreboucas commented 7 years ago

ERROR in Error encountered resolving symbol values statically.

Calling function 'makeDecorator', function calls are not supported.

Consider replacing the function or lambda with a reference to an exported function,

resolving symbol NgModule in /node_modules/ng2-input-mask/node_modules/@angular/core/src/metadata/ng_module.d.ts, resolving symbol NgModule in /node_modules/ng2-input-mask/node_modules/@angular/core/src/metadata.d.ts, resolving symbol NgModule in /node_modules/ng2-input-mask/node_modules/@angular/core/src/core.d.ts, resolving symbol NgModule in /node_modules/ng2-input-mask/node_modules/@angular/core/index.d.ts, resolving symbol Ng2InputMaskModule in /node_modules/ng2-input-mask/module/ng2-input-mask.module.ts, resolving symbol Ng2InputMaskModule in /node_modules/ng2-input-mask/module/ng2-input-mask.module.ts

jvorpahl commented 7 years ago

Getting same thing.

daemswibowo commented 7 years ago

Me too. Need an answer :)

brunobertechini commented 7 years ago

Me too

josecarlosweb commented 7 years ago

Me too²

cskita commented 7 years ago

update typescript to latest version.. it works for me

nsjithin commented 7 years ago

Adding the following line in tsconfig.json compilerOptions fixed the issue for me.

"paths": { "@angular/*": ["../node_modules/@angular/*"] }

Please check more in https://github.com/angular/angular-cli/issues/3854#issuecomment-274344771 and https://github.com/angular/angular-cli/issues/3854#issuecomment-299109237

carlosost commented 7 years ago

@nsjithin solution worked for me too, but... what exactly it means? What if it has any side effects? Wel... I will keep my eyes open :-)

regivaldo commented 6 years ago

@nsjithin Thanks for solution!

ruonan59 commented 6 years ago

@nsjithin , i don't have the building error anymore after apply your code. but while view the app in broswer, i got the following error: Unexpected value 'Ng2InputMaskModule' imported by the module 'AppModule'. Please add a @NgModule annotation.

does this control works for angular 4 app? or it'snot version related. thanks~

djromy2006 commented 6 years ago

The @nsjithin's solution works for me as well.