Skip to content

Type error: Type 'string | undefined' is not assignable to type 'string'. #178

@palmurugan

Description

@palmurugan

Type error: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.

./src/components/core/theme-provider/emotion-cache.tsx:64:32
Type error: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.

62 | if (typeof style !== 'boolean') {
63 | if (isGlobal) {

64 | globals.push({ name, style });
| ^
65 | } else {
66 | styles += style;
67 | dataEmotionAttribute += ${name};
Next.js build worker exited with code: 1 and signal: null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions