-
Notifications
You must be signed in to change notification settings - Fork 524
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
Angular package format detection doesn't work for Ivy-only packages #927
Comments
context: https://github.com/angular/core-builds/tree/master-ivy-aot |
For third party packages published to npm we recommend running ngcc and bundling metadata.json so that wouldn't be a problem in the short term. |
Ivy snapshots no longer contain metadata.json which breaks the detection logic for Angular Package Format (APF) in npm/yarn install. This PR adds ANGULAR_PACAKGE as a magic file to denote APF. See bazel-contrib/rules_nodejs#927
metadata.json are no longer produced in Ivy mode, and this breaks the detection logic for Angular Package Format (APF). As a stop gap solution for the snapshot builds, use 'ng-update' field in package.json to detect APF. Closes bazel-contrib#927
metadata.json are no longer produced in Ivy mode, and this breaks the detection logic for Angular Package Format (APF). As a stop gap solution for the snapshot builds, use 'ng-update' field in package.json to detect APF. Closes bazel-contrib#927
Ivy snapshots no longer contain metadata.json which breaks the detection logic for Angular Package Format (APF) in npm/yarn install. This PR adds ANGULAR_PACAKGE as a magic file to denote APF. See bazel-contrib/rules_nodejs#927
metadata.json are no longer produced in Ivy mode, and this breaks the detection logic for Angular Package Format (APF). As a stop gap solution for the snapshot builds, use 'ng-update' field in package.json to detect APF. Closes bazel-contrib#927
metadata.json are no longer produced in Ivy mode, and this breaks the detection logic for Angular Package Format (APF). As a stop gap solution for the snapshot builds, use ANGULAR_PACKAGE magic file in the package to detect APF. Closes bazel-contrib#927
metadata.json are no longer produced in Ivy mode, and this breaks the detection logic for Angular Package Format (APF). As a stop gap solution for the snapshot builds, use ANGULAR_PACKAGE magic file in the package to detect APF. Closes bazel-contrib#927
metadata.json are no longer produced in Ivy mode, and this breaks the detection logic for Angular Package Format (APF). As a stop gap solution for the snapshot builds, use ANGULAR_PACKAGE magic file in the package to detect APF. Closes bazel-contrib#927
Ivy snapshots no longer contain metadata.json which breaks the detection logic for Angular Package Format (APF) in npm/yarn install. This PR adds ANGULAR_PACAKGE as a magic file to denote APF. See bazel-contrib/rules_nodejs#927 PR Close #31900
Ivy snapshots no longer contain metadata.json which breaks the detection logic for Angular Package Format (APF) in npm/yarn install. This PR adds ANGULAR_PACAKGE as a magic file to denote APF. See bazel-contrib/rules_nodejs#927 PR Close angular#31900
…found This file is used by the npm/yarn_install rule to detect APF. See bazel-contrib#927
I thought that was metadata.json. |
Nope, metadata.json is a View-Engine-specific artifact. |
Ivy snapshots no longer contain metadata.json which breaks the detection logic for Angular Package Format (APF) in npm/yarn install. This PR adds ANGULAR_PACAKGE as a magic file to denote APF. See bazel-contrib/rules_nodejs#927 PR Close angular#31900
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
Is Sorry I couldn't find any information elsewhere. The FWIW, I have been trying to port our app using Ivy to bazel following the example here and I am getting weird errors relating to certain custom elements not being defined (they are).
Is there a workaround for using IVY + Bazel while the examples here are updated? |
As per conversation on slack- https://bazelbuild.slack.com/archives/CSACXKUBE/p1603786805015600 this was solved by adding see https://github.com/bazelbuild/rules_nodejs/blob/stable/examples/angular/package.json#L76 |
I just hit this issue with a component only compiled to ivy from another team. There has been little activity on this issue for almost a year now, are there any plans for addressing this issue? The current workaround seems to be putting an For any one else finding this thread my workaround is adding the "postinstall": "echo '' > ./node_modules/@org/package/ANGULAR_PACKAGE; ngcc", |
This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
doesn't contain metadata.json files so our detection logic here
https://github.com/bazelbuild/rules_nodejs/blob/818cfb2291a8fa9f683d16e8dcc24af7b0eb2870/internal/npm_install/generate_build_file.js#L695-L707
fails
The text was updated successfully, but these errors were encountered: