Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jackHedaya opened this issue Jan 15, 2023 · 4 comments
Open

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

jackHedaya opened this issue Jan 15, 2023 · 4 comments

Comments

@jackHedaya
Copy link

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)
@a007mr
Copy link

a007mr commented Mar 15, 2023

Have same problem with React + Redux project

@ba-ppp
Copy link

ba-ppp commented Mar 26, 2023

The same, how to fix that

@SaketKothari
Copy link

By installing the below package it worked for me
npm install core-js-pure

@Mecil9
Copy link

Mecil9 commented Jun 15, 2023

not working for ssr
add 'use client' for page to fix it! ^-^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants