Skip to content

Error when using component as selectors with emotion and nextjs #370

@natelindev

Description

@natelindev

🐛 Bug Report

A clear and concise description of what the bug is.

When using xstyled with nextjs, an error will be caused TypeError: Cannot convert a Symbol value to a string

If I switch imports to @emotion/styled, it will not cause this error.

To Reproduce

Steps to reproduce the behavior:

see sandbox: https://stackblitz.com/edit/nextjs-1qcbrs?file=pages%2Findex.js

Expected behavior

the code should work as intented, no error should be thrown.

Link to repl or repo (highly encouraged)

see sandbox: https://stackblitz.com/edit/nextjs-1qcbrs?file=pages%2Findex.js

Metadata

Metadata

Assignees

No one assigned

    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