Skip to content

[email protected] generates erroneous "Function calls not supported" error. #3445

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

Closed
ghost opened this issue Dec 7, 2016 · 2 comments
Closed

Comments

@ghost
Copy link

ghost commented Dec 7, 2016

Please provide us with the following information:

OS?

Breaks on any and all.

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

This question exposes the underlying problem. You don't really know what version you are running. If you run ng --version in the project folder it seeks out the node_modules folder looking for ng in the .bin directory, and reports that version. I get the idea but that's a big surprise. If you run ng --version outside the project folder it will report the globally installed ng version.

In my case I had 1.0.0-beta.20-4 globally and 1.0.0-beta-22.1 locally. Moreover, my package.json asked for ^1.0.0-beta.19-2 (and the ^ is going to result in the latest beta).

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

Yes. Added some packages that mysteriously started failing to compile on various machines.

The log given by the failure.

Normally this include a stack trace and some more information.

So, the 22-1 angular-cli compile suddenly fails with this error. Works fine with 20-4. Here is the error (some AOT compile error with one of the 50 odd modules we have).

Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a... more noise...

Mention any other details that might be useful.

Main issue is compilation breaking in 22-4 beta with this obscure "Function calls are not supported" (on code that's been working up to now and hasn't changed) but also really not being able to determine quickly what actual version of angular-cli you are running.

My fix was to remove the ^ from package.json for angular-cli and pin it to a known-good version, until such times as the compiler or the package is fixed.


Thanks! We'll be in touch soon.

@hansl
Copy link
Contributor

hansl commented Dec 7, 2016

Dupe of #3368. See #3368 (comment)

@hansl hansl closed this as completed Dec 7, 2016
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant