Skip to content

Conversation

alan-agius4
Copy link
Collaborator

This refactor resolves an issue where the inferred type of renderSassStylesheet required an external reference, which could affect portability.

Fixes the following error:

packages/angular/build/src/tools/sass/worker.ts:59:31 - error TS2742: The inferred type of 'renderSassStylesheet' cannot be named without a reference to '../../../../../../external/npm/node_modules/source-map-js/source-map'. This is likely not portable. A type annotation is necessary.

Explicit type annotation added to renderSassStylesheet function to prevent reliance on inferred types.

Note: Ensure compatibility with Windows Bazel builds.

…rred types

This refactor resolves an issue where the inferred type of `renderSassStylesheet` required an external reference, which could affect portability.

Fixes the following error:
```
packages/angular/build/src/tools/sass/worker.ts:59:31 - error TS2742: The inferred type of 'renderSassStylesheet' cannot be named without a reference to '../../../../../../external/npm/node_modules/source-map-js/source-map'. This is likely not portable. A type annotation is necessary.
```
Explicit type annotation added to `renderSassStylesheet` function to prevent reliance on inferred types.

**Note:** Ensure compatibility with Windows Bazel builds.
@alan-agius4 alan-agius4 requested a review from clydin September 10, 2024 16:48
@alan-agius4 alan-agius4 added target: major This PR is targeted for the next major release labels Sep 10, 2024
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 10, 2024
@alan-agius4 alan-agius4 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 Sep 10, 2024
@alan-agius4 alan-agius4 merged commit 6c6248e into angular:main Sep 10, 2024
37 of 59 checks passed
@alan-agius4 alan-agius4 deleted the fix-windows-ci branch September 10, 2024 17:02
@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 Oct 11, 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: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants