angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.69k stars 11.98k forks source link

esbuild builder is throwing css warning from third party packages #26140

Open iKrishnaSahu opened 9 months ago

iKrishnaSahu commented 9 months ago

Command

serve

Is this a regression?

The previous version in which this bug was not present was

No response

Description

@angular-devkit/build-angular:browser-esbuild builder is throwing css warning from third party packages

I am using some private packages which has some styling related issues. We will fix it but the builder should not throw warning from third party package.

@angular-devkit/build-angular:browser is not throwing this warning

Minimal Reproduction

Exception or Error

Application bundle generation complete. [119.629 seconds]
Watch mode enabled. Watching for file changes...
  ➜  Local:   http://localhost:4200/
| Changes detected. Rebuilding...▲ [WARNING] Expected percentage but found "." [css-syntax-error]

    node_modules/@ruf/theme-plateau/dist/style-hybrid.css:5177:2:
      5177 │   .rc from {
           ╵   ^

▲ [WARNING] "overflow-1" is not a known CSS property [unsupported-css-property]

    node_modules/@ruf/theme-plateau/dist/style-hybrid.css:8006:2:
      8006 │   overflow-1: hidden;
           │   ~~~~~~~~~~
           ╵   overflow-y

  Did you mean "overflow-y" instead?

▲ [WARNING] Expected percentage but found "." [css-syntax-error]

    node_modules/@ruf/theme-plateau/dist/style-hybrid.css:8752:2:
      8752 │   .rc 0% {
           ╵   ^

▲ [WARNING] Expected percentage but found "." [css-syntax-error]

    node_modules/@ruf/theme-plateau/dist/style-hybrid.css:8773:2:
      8773 │   .rc 0% {
           ╵   ^

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 17.0.0-rc.1
Node: 18.18.2
Package Manager: npm 8.19.3
OS: win32 x64

Angular: 17.0.0-rc.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... elements, forms, localize, material, material-moment-adapter
... platform-browser, platform-browser-dynamic, router, upgrade

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-rc.1
@angular-devkit/build-angular   17.0.0-rc.1
@angular-devkit/core            17.0.0-rc.1
@angular-devkit/schematics      17.0.0-rc.1
@schematics/angular             16.2.7
ng-packagr                      16.2.3
rxjs                            7.8.1
typescript                      5.2.2
webpack                         5.89.0
zone.js                         0.14.0

Anything else relevant?

No response

alan-agius4 commented 8 months ago

This is expected and these are warnings that the code is broken. It would be very hard to debug an app that is misbehaving otherwise.

We could however provide an option to hide warnings for third-party packages.

angular-robot[bot] commented 8 months ago

This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

You can find more details about the feature request process in our documentation.

angular-robot[bot] commented 7 months ago

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] commented 6 months ago

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.