-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular SSR outputs warning on css on every page load #4976
Comments
Hi @kewur what version of Angular are you using? I do see this pop up as a warning during the build, though it doesn't seem to affect the loading of CSS or anything when I served the built site. I tested with a fresh install using It seems related to this open issue GoogleChromeLabs/critters#103 on the critters repo which Angular uses to inline critical css. |
hey Heather, thanks for looking into it. Yeah the warning seems harmless and happens on every page load (during runtime and not build), but it does cause it to be logged into cloudwatch, which unfortunately costs us. Is there any way to prevent the logging of this that we can implement as a hack? |
Hi @kewur there were a few comments suggesting that people try to turn off the critical css inline-ing like in this comment if that works for your setup, in your angular.json GoogleChromeLabs/critters#103 (comment) Other than that, I would see if there is a solution via pinning I am going to close out this issue as unfortunately we're not able to support it with any changes on our end. |
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
Angular
Which UI component?
Authenticator
How is your app built?
angular ssr
What browsers are you seeing the problem on?
Chrome, Firefox, Microsoft Edge, Safari, iOS (React Native), Android (React Native)
Which region are you seeing the problem in?
us-east-1
Please describe your bug.
when serving a page through angular SSR the logs are flooded with this error
What's the expected behaviour?
logs not being output with the errors.
Help us reproduce the bug!
have an angular project and serve it with ssr.
Code Snippet
// Put your code below this line.
Console log output
2 rules skipped due to selector errors:
.amplify-accordion__item:where() -> Empty sub-selector
.amplify-accordion__item:where() -> Empty sub-selector
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: