You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using the css prop to style my components since nextjs@10.2.0 (also tested at @10.2.3, the latest version before 11.0.0). It's been working wonderfully.
When I upgrade nextjs to 11.0.0, the css props is no longer compiled; the template string is just rendered as is.
Have you removed your babel.config.json or .babelrc? Because if you did, you moved to SWC instead of Babel.
The css prop of styled-componentsisn't supported yet for SWC.
I have been using the
css
prop to style my components since nextjs@10.2.0 (also tested at @10.2.3, the latest version before 11.0.0). It's been working wonderfully.When I upgrade nextjs to 11.0.0, the css props is no longer compiled; the template string is just rendered as is.
That means no styling from the
css
prop is applied to the element as desired.This is the only console error log when I refresh the page:
But even when I resolve that error, the problem at hand remains.
Using the
styled.div
approach still works, though.The text was updated successfully, but these errors were encountered: