question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider rep lacing the function or lambda with a reference to an exported function,

See original GitHub issue

Bug Report or Feature Request (mark with an x)

when i do ng build i get the following error: getting error ERROR in Error encountered resolving symbol values statically. Calling function ‘makeDecorator’, function calls are not supported. Consider rep lacing the function or lambda with a reference to an exported function,

- [ ] bug report -> please search issues before submitting
I searched everywhere. The problem was originally ChartModule.forRoot(require('highcharts')). using require was throwing an error. then i read some ticket issues and so a solution. the error went away and the charts worked. but then came another error. 
- [ ] feature request

Versions.

Repro steps.

The log given by the failure.

ERROR in Error encountered resolving symbol values statically. Calling function ‘makeDecorator’, function calls are not supported. Consider rep lacing the function or lambda with a reference to an exported function, resolving symbol Injectable in /Users/chinenyem/Desktop/learning_sites/ SkyCastWeather/node_modules/angularfire2/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol Injectable in /Users/chinenyem/Deskt op/learning_sites/SkyCastWeather/node_modules/angularfire2/node_modules/@angular/core/src/di.d.ts, resolving symbol Injectable in /Users/chinen yem/Desktop/learning_sites/SkyCastWeather/node_modules/angularfire2/node_modules/@angular/core/src/core.d.ts, resolving symbol Injectable in /U sers/chinenyem/Desktop/learning_sites/SkyCastWeather/node_modules/angularfire2/node_modules/@angular/core/index.d.ts, resolving symbol AngularF ireAuth in /Users/chinenyem/Desktop/learning_sites/SkyCastWeather/node_modules/angularfire2/auth/auth.d.ts, resolving symbol AngularFireAuth in /Users/chinenyem/Desktop/learning_sites/SkyCastWeather/node_modules/angularfire2/auth/auth.d.ts

ERROR in ./src/main.ts Module not found: Error: Can’t resolve ‘./$$_gendir/app/app.module.ngfactory’ in ‘/Users/chinenyem/Desktop/learning_sites/SkyCastWeather/src’ @ ./src/main.ts 4:0-74 @ multi ./src/main.ts

Desired functionality.

Mention any other details that might be useful.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chinenyemcommented, Apr 5, 2017

Angularfire2 was throwing the problem . So I uninstall angularfire2 and reinstall it. I also fixed the high charts issue too.

Thank you, it compiles perfectly now with --dev and --prod

On Wed, Apr 5, 2017 at 4:14 AM Anian Z notifications@github.com wrote:

You are probably having problems with the AoT Code Analysis and the Compiler. You can find an explanation of the limitations concerning AoT here https://gist.github.com/chuckjaz/65dcc2fd5f4f5463e492ed0cb93bca60 and many more issues describing similar problems on this repo https://github.com/angular/angular-cli/issues?utf8=✓&q=is%3Aissue ERROR in Error encountered resolving symbol values statically. function calls are not supported and the official angular repo.

A quick workaround might be to disable the aot-mode with --aot false in the cli.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/angular/angular-cli/issues/5833#issuecomment-291787481, or mute the thread https://github.com/notifications/unsubscribe-auth/AH3ThanE2uvUFieHCOYVchFCzEfPXVcmks5rs01NgaJpZM4Mzs3F .

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting 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, ...
Read more >
ERROR in Error encountered resolving symbol values ...
ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported[...] Enabling ...
Read more >
Publishing ionic app - Error - Calling function 'makeDecorator ...
Error : Error encountered resolving symbol values statically. Calling ... Consider replacing the function or lambda with a reference to an exported function, ......
Read more >
angular/angular-cli - Gitter
ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the ...
Read more >
Error encountered resolving symbol values statically - O'Reilly
Calling function 'ModalDialogParams', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found