Cannot use esbuild builder after 17.0.X with Bazel
MaxxM59 opened this issue · 4 comments
MaxxM59 commented
Which @angular/* package(s) are the source of the bug?
bazel, compiler-cli, compiler
Is this a regression?
Yes
Description
Hi, not sure if this is the right place for this.
Basically calling the architect bin with bazel.
It was working fine when updating to 17.0
But since I updated to to 17.1+ there are issues with esbuild
First was main.ts not bein available in the ts compilation (fixed with "preserveSymslinks" :true)
Second is @angular/material cannot be resolved with its path
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Architect dist/angular failed: (Exit 1): app__js_binary.sh failed: error executing Architect command (from target //:app) bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/app__js_binary.sh angular:build
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
- Building...
angular:build: ✘ [ERROR] Error: The "path" argument must be of type string. Received undefined
╷
1 │ @use '@angular/material' as mat;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src/styles.scss 1:1 root stylesheet [plugin angular-sass]
angular:styles/global:styles:1:8:
1 │ @import 'src/styles.scss';
╵ ~~~~~~~~~~~~~~~~~
�cFAILURE
Result: {
"success": false,
"target": {
"project": "angular",
"target": "build"
}
}
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 17.3.4
Node: 18.18.2
Package manager: pnpm 8.4
OS: Ubuntu 22.04
Anything else?
It still compiles correctly with the regular "browser" builder.