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

TypeError: Super expression must either be null or a function #55

Open
18601673727 opened this issue Apr 25, 2024 · 0 comments
Open

TypeError: Super expression must either be null or a function #55

18601673727 opened this issue Apr 25, 2024 · 0 comments

Comments

@18601673727
Copy link

Using with next.js v14 with app router, in server component do:

<div className="flex text-xs md:text-md gap-4">
  <Avatar className="flex-none w-10 h-10" {...genConfig(reply.author.id)} />
  <div>{reply.author.name}</div>
</div>

got error:

Server Error

TypeError: Super expression must either be null or a function
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
_inherits
node_modules\.pnpm\@babel+runtime@7.24.4\node_modules\@babel\runtime\helpers\inherits.js (4:1)
eval
node_modules\.pnpm\react-nice-avatar@1.5.0_react@18.2.0\node_modules\react-nice-avatar\dist\index.esm.js (1:49315)
eval
node_modules\.pnpm\react-nice-avatar@1.5.0_react@18.2.0\node_modules\react-nice-avatar\dist\index.esm.js (1:50773)
(rsc)/./node_modules/.pnpm/react-nice-avatar@1.5.0_react@18.2.0/node_modules/react-nice-avatar/dist/index.esm.js

Maybe need to look at this code?

export default class ReactNiceAvatar extends Component<NiceAvatarProps> {

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

1 participant