Comments (8)
You can attempt to implement the modification provided in this link locally: https://github.com/angular/angular-cli/pull/27641/files. This should help reveal more information.
from angular-cli.
@CITguy, I am unable to replicate this problem. Can you please share a reproduction?
from angular-cli.
It seems our corporate VPN is at fault, somehow. I tested on another machine that's not behind our corporate VPN and it's working fine. Unfortunately, due to the lack of information in the error output, I still don't know how to figure out exactly why things are breaking.
Any ideas how I might be able to get better debugging data from the failure?
from angular-cli.
Seems the cause is unable to get local issuer certificate
, which is strange given that I can load the URL for the CSS file in my browser with no cert issues.
from angular-cli.
I wonder if the plugin should fail gracefully in the event that optimization can't succeed.
In my mind, the inlining optimization should be a "best effort", so that even if the plugin can't successfully inline styles from a CSS @import
it should leave the import as-authored and potentially display a warning message in the CLI output. Worst case scenario is that an import URL is incorrect or unreachable; the browser already knows how to handle this scenario without preventing the rest of the CSS from being loaded/parsed, so why not leave it as-authored?
If the webpack optimization is attempting to do the same as the esbuild plugin (inlining the file), it seems to be leave the import as-is (though without a warning message), instead of raising a critical error (i.e., it fails gracefully).
from angular-cli.
In webpack, global stylesheets don't support font inlining; it only occurs in the index file.
This case warrants more than just a warning. If the build runs in a CI environments warnings can be overlooked. Additionally, in CI/CD pipelines,a warning can result in deploying an unoptimized version of the app, negatively impacting Core Web Vitals (CWV).
from angular-cli.
Seems the cause is unable to get local issuer certificate, which is strange given that I can load the URL for the CSS file in my browser with no cert issues.
Thus usually means that the SSL certificate authority (CA) that issued the certificate is not recognized by your system.
from angular-cli.
Yeah, the root of the problem is Node is unaware of the Zscaler cert, which causes the request to the typekit url to fail. This issue can be closed now that #27641 will provide additional info next time I encounter an error.
from angular-cli.
Related Issues (20)
- Component SCSS Updates without Triggering Full Page Reloads HOT 1
- After Upgrade from angular 17 to angular 18 the LOCALE_ID is always en_US HOT 6
- Angular 18 not working with SCSS defined HOT 1
- Cannot find module 'ajv-formats' HOT 5
- No source of warning on SCSS files
- [CLI] @angular-devkit/build-angular:application with dev-server should start ssr server HOT 1
- [CLI] ng commands could inspect sub-folders to find angular.json file HOT 1
- Keep CSS nesting in styles tags HOT 3
- `ng update` fails with Yarn
- v18.0.1 Invalid URL replacement in SCSS @function
- Routing not working HOT 1
- v18.0.1 Rebasing SCSS url() breaks when there are more than two quote characters due to concatenation HOT 1
- app doesnt rebuild when error in sass function is fixed HOT 2
- flag to run or skip all the optional migrations HOT 3
- Downlevel exclusion list missing after upgrade to Angular 17 HOT 1
- After migrating to vite, routes with a "." do not work anymore HOT 4
- Unsupported URL Type "workspace:": workspace:* HOT 2
- The way to different path mapping between server and browser when using application builder HOT 3
- Content Security Policy 'NONCE' value is not applied to all scripts (when using 'ngCspNonce' approach) HOT 2
- A silent error is thrown in `AddCommandModule.builder`, when passing a version to the command `ng add @my/lib@<version>`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cli.