Skip to content

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

Closed
devversion wants to merge 2 commits into
angular:mainfrom
devversion:fix-playground
Closed

devversion wants to merge 2 commits into
angular:mainfrom
devversion:fix-playground

Conversation

@devversion

@devversion devversion commented Apr 15, 2024 •

Copy link
Copy Markdown
Member

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
@github-actions

github-actions Bot commented Apr 15, 2024 •

Copy link
Copy Markdown

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

@JeanMeche JeanMeche left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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