-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Compilation issues when using Angular Material 5.0.x/5.1.0 in an Angular/Bazel app #9502
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
@alexeagle we probably need to do something extra to make our packages bazel-friendly. It probably makes the most sense to wait until the |
It appears that
|
This is fixed if I add |
In the bazel app, this has the same problem as angular/angular-bazel-example#56 for the devserver (but rollup and closure are fine). I think it's better to just use Bazel dependency to build material2. |
I know this is a work in progress, but is there an update to this issue or anything that I could do to help out (or work around)? |
We're still in the process of making out own build setup use bazel. There are unfortunately still a lot of issues to iron out. |
Any updates on this with https://github.com/alexeagle/angular-bazel-example/wiki/Publishing-Libraries in place? Material is one crucial thing blocking my team to switch to Bazel. |
We're still working on the bazel support overall |
@yamxun I think Angular v6 is a likely timeframe for this to land (early April) but we can't promise anything. Of course Angular material is one of the first libraries we'll expect to have working. |
Any update on this issue? This problem still exists in Angular |
Any updates on this? |
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. |
Angular Material 5.1.0 (and 5.0.x) currently encounters compilation errors when consumed from an Angular/Bazel app.
An example error is
Could not resolve ./index.ngfactory from [....]/angular_bazel_example/node_modules/@angular/material/button/typings/index.d.ts
.To reproduce, run
bazel build //src
from angular/angular-bazel-example#63 (small repro PR.)I've confirmed that
node_modules/@angular/material/button/typings/index.ngfactory.js
is present, so I'm not sure why the import can't be resolved. The error is occurring inTsCompilerAotCompilerTypeCheckHostAdapter.fromSummaryFileName
, which is defined in https://github.com/angular/angular/blob/5.2.x/packages/compiler-cli/src/transformers/compiler_host.ts. One guess I had is that the summary loader may be looking for a.ts
file instead of a.js
file, but I couldn't tell from looking at that file whether or not that is the case./cc @alexeagle @jelbourn
The text was updated successfully, but these errors were encountered: