Skip to content

Conversation

alan-agius4
Copy link
Collaborator

In Node.js 20, changes to ESM loader hooks result in the --import execArgv being passed from the parent to child workers.

This commit resolves the issue by setting an empty execArgv in the JavaScript transformer, preventing unintended propagation.

Closes #28683

… prerendering or SSR

In Node.js 20, changes to ESM loader hooks result in the `--import` execArgv being passed from the parent to child workers.

This commit resolves the issue by setting an empty `execArgv` in the JavaScript transformer, preventing unintended propagation.

Closes angular#28683
@alan-agius4 alan-agius4 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 Oct 23, 2024
@alan-agius4 alan-agius4 requested a review from clydin October 23, 2024 07:55
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release and removed 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 Oct 23, 2024
@alan-agius4 alan-agius4 merged commit cc345b0 into angular:main Oct 23, 2024
34 of 35 checks passed
@alan-agius4 alan-agius4 deleted the loader-hooks-esm branch October 23, 2024 09:20
@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 Nov 23, 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 area: @angular/build target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ng build fails with: An error occurred while extracting routes.

2 participants