reactjs – Dynamically resolved styles are not applied to a React component (styled-jsx)

I have the following code:

import React to 'react';
import MainTemplate from .. / components / MainTemplate & # 39 ;;
import {H1, Card} from & # 39; @ blueprintjs / core & # 39 ;;
import CSS from & # 39; styled-jsx / css & # 39 ;;

export default () => {
const {className, styles} = css.resolve`
{ The Red color; }
`;
console.log (className, styles);
return (
        
            {Patterns}
            
                

A header text!

) }

As you can see, I want to pass a course name to an external card component. However, I see in the development tools that a style element has been added to the head, but it seems that there is text inside rather than styles, that is to say that the syntax is not highlighted. As a result, the styles are not applied.

So I wonder what's wrong with me? I'm using a resolution tag as shown in the documentation.

j & # 39; uses next.js and the styles are not applied in dev mode or in production mode.