-
Notifications
You must be signed in to change notification settings - Fork 84
Error importing WpApiModule / and AOT #19
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
Manual editing fix in wp-api-angular.d.ts: ps - from
|
The above changes works with angular JIT compilation, but not with AOT.
|
checking, thanks for reporting |
I released beta3, it should fix the AoT. Upgrade, try and let me know :) |
Still the same error:
|
Are you sure you have beta3? I can now run the following command:
before beta3 I had:
|
yes, I have manually checked package.json. I use with this webpack based starter project: |
ok thanks for sharing, I am going to try on this too! |
I can reproduce, this will help me fixing it thanks! |
should be fine with beta4. please try and let me know |
@klihelp can we close? |
I am getting an error on 3.0.0-beta4, issue #20 |
beta5 now works with Angular CLI but not on you startup project and Ionic CLI. On it.. |
well actually it works on your project too. please confirm |
beta6 works on all cases. please try |
Thanks for your project. All works now. |
Finally! |
Just for a reading about aot (for new visitors): |
import { WpApiModule } from 'wp-api-angular';
ERROR in Error encountered resolving symbol values statically. Calling function 'WpApiModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in /Users/mac/../src/app/app.module.ts
ref: angular/angular-cli#3707
The text was updated successfully, but these errors were encountered: