Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tiloreboucas opened this issue Feb 1, 2017 · 10 comments
Open

Comments

@tiloreboucas
Copy link

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
Copy link

Getting same thing.

@webowodev
Copy link

Me too. Need an answer :)

@brunobertechini
Copy link

Me too

@josecarlosweb
Copy link

Me too²

@cskita
Copy link

cskita commented Aug 10, 2017

update typescript to latest version.. it works for me

@nsjithin
Copy link

nsjithin commented Sep 1, 2017

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

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

Please check more in angular/angular-cli#3854 (comment) and angular/angular-cli#3854 (comment)

@carlosost
Copy link

@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
Copy link

@nsjithin Thanks for solution!

@ruonan59
Copy link

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests