-
Notifications
You must be signed in to change notification settings - Fork 12k
Calling function 'OpaqueToken', function calls are not supported. #5939
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
Comments
Getting the same error, "dummy change" allows the project to compile. Also using Yarn, but 0.23.2 |
1 similar comment
Getting the same error, "dummy change" allows the project to compile. Also using Yarn, but 0.23.2 |
Same issue here. Not using yarn though. Here's my version list:
The problem appeared all of a sudden after upgrading to angular 4.0.0 and has been present ever since. The strange thing is that when I I tried deleting the node_modules folder, Compiling with AOT (-prod -aot) also fails with the infamous "makeDecorator" error, but that might be unrelated. |
@markgoho - Do your colleagues also start experiencing the same problem when they |
I've downgraded my packages back to Angular 2.4.10, which was the version we've developed the project with and never had any issues with, until the angular-cli 1.0.0 upgrade. Now building the project fails with error This is occurring when doing
Any feedback whatsoever would be most welcome! |
Same thing here:
[package.json]
|
So I found a solution after lots and lots of searching. The problem with my setup was:
I searched for at least 5 full working days, trying to get my setup back working after an initial failed upgrade. There are many, many issues and bugs logged in various projects with different solutions, so hopefully my solution will help somebody as well. So in short what worked for me:
|
That's right @amplexor-kv. To get it working, I had to wipe out my node_modules and upgrade angular-cli globally. Note: One thing super weird, before reinstalling it globally I was trying to use |
It seems like this was a dependency problem. thanks to @amplexor-kv for the nice write-up! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.0.0
node: 7.5.0
os: linux x64
@angular/animations: 4.0.0
@angular/common: 4.0.0
@angular/compiler: 4.0.0
@angular/core: 4.0.0
@angular/forms: 4.0.0
@angular/http: 4.0.0
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 4.0.0
@angular/platform-browser-dynamic: 4.0.0
@angular/platform-server: 4.0.0
@angular/router: 4.0.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.0
Repro steps.
It is hard to reproduce as other team members do not have these issues. We are using the same OS, node and angular cli version
The log given by the failure.
On ng serve i get the following error message
ERROR in Error encountered resolving symbol values statically. Calling function 'OpaqueToken', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol INITIAL_REDUCER in /opt/lampp/htdocs/frontend/node_modules/@ngrx/store/src/ng2.d.ts, resolving symbol provideStore in /opt/lampp/htdocs/frontend/node_modules/@ngrx/store/src/ng2.d.ts, resolving symbol StoreModule.provideStore in /opt/lampp/htdocs/frontend/node_modules/@ngrx/store/src/ng2.d.ts, resolving symbol AppModule in /opt/lampp/htdocs/frontend/src/app/app.module.ts, resolving symbol AppModule in /opt/lampp/htdocs/frontend/src/app/app.module.ts
Desired functionality.
Mention any other details that might be useful.
The weirdest thing is that once I make a dummy change (add a space to any file) project compiles successfully.
Also, I use Yarn v0.22.0 if that is relevant
The text was updated successfully, but these errors were encountered: