Skip to content
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

build(docs-infra): fix playground lezer parsing #55349

Closed
wants to merge 2 commits into from

Conversation

devversion
Copy link
Member

@devversion devversion commented Apr 15, 2024

When we started fixing the version mismatch with local 1st-party packages, we also re-routed all dependencies like @lezer/javascript into adev/node_modules. This works fine, but results in a different version mismatch because the codemirror dependencies may resolve the Angular version from /node_modules- causing some subtle complex runtime error.

This commit fixes this by only re-routing dependencies that have dependency on e.g. @angular/core into adev/node_modules.

Fixes #55298.

@devversion devversion added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Apr 15, 2024
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Apr 15, 2024
@ngbot ngbot bot added this to the Backlog milestone Apr 15, 2024
Copy link

github-actions bot commented Apr 15, 2024

Deployed adev-preview for 6971d63 to: https://ng-dev-previews-fw--pr-angular-angular-55349-adev-prev-2aq4m6k6.web.app

Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt.

When we started fixing the version mismatch with local 1st-party
packages, we also re-routed all dependencies like `@lezer/javascript`
into `adev/node_modules`. This works fine, but results in a different
version mismatch because the codemirror dependencies may resolve the
Angular version from `/node_modules`- causing some subtle complex
runtime error.

This commit fixes this by only re-routing dependencies that have
dependency on e.g. `@angular/core` into `adev/node_modules`.

Fixes angular#55298.
follow up for angular-devkit which does not include peer deps in their depset
Copy link
Member

@JeanMeche JeanMeche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this !

@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Apr 15, 2024
@JeanMeche
Copy link
Member

@devversion One squash away and we're good here !

@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 15, 2024
@devversion
Copy link
Member Author

@JeanMeche fixup commits are automatically squashed upon merge 😄

@devversion devversion removed the request for review from josephperrott April 15, 2024 12:35
@devversion devversion removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews target: major This PR is targeted for the next major release labels Apr 15, 2024
@pkozlowski-opensource
Copy link
Member

This PR was merged into the repository by commit 3471c41.

pkozlowski-opensource pushed a commit that referenced this pull request Apr 15, 2024
When we started fixing the version mismatch with local 1st-party
packages, we also re-routed all dependencies like `@lezer/javascript`
into `adev/node_modules`. This works fine, but results in a different
version mismatch because the codemirror dependencies may resolve the
Angular version from `/node_modules`- causing some subtle complex
runtime error.

This commit fixes this by only re-routing dependencies that have
dependency on e.g. `@angular/core` into `adev/node_modules`.

Fixes #55298.

PR Close #55349
iteriani pushed a commit to iteriani/angular that referenced this pull request Apr 16, 2024
When we started fixing the version mismatch with local 1st-party
packages, we also re-routed all dependencies like `@lezer/javascript`
into `adev/node_modules`. This works fine, but results in a different
version mismatch because the codemirror dependencies may resolve the
Angular version from `/node_modules`- causing some subtle complex
runtime error.

This commit fixes this by only re-routing dependencies that have
dependency on e.g. `@angular/core` into `adev/node_modules`.

Fixes angular#55298.

PR Close angular#55349
@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 May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker adev: preview area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular.dev Playground is broken
3 participants