Skip to content

Nextjs 13: "Super expression must either be null or a function" #256

@jackHedaya

Description

@jackHedaya

Hi!

Making a simple project with Nextjs 13 and adding

<Avatar name="Foo Bar" />

will throw

 TypeError: Super expression must either be null or a function
    at _inherits (webpack-internal:///(sc_server)/./node_modules/@babel/runtime/helpers/inherits.js:5:15)
    at eval (webpack-internal:///(sc_server)/./node_modules/react-avatar/lib/context.js:72:28)
    at eval (webpack-internal:///(sc_server)/./node_modules/react-avatar/lib/context.js:102:2)
    at (sc_server)/./node_modules/react-avatar/lib/context.js 
    at __webpack_require__
    at eval (webpack-internal:///(sc_server)/./node_modules/react-avatar/lib/avatar.js:30:16)

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