DEV Community

msbala007
msbala007

Posted on

1

Typeerror: super expression must either be..

typeerror super expression must either be null or a function nextjs

_

- Solution

  1. If your get this error when you importing any packages (then it'll work for you)

2.In next js 13 app directory is a server component.so simply add 'use client' in top of your file.

_

Top comments (2)

Collapse
 
yangerrai profile image
Yanger Rai

Like a charm

Collapse
 
simrin3308 profile image
simrin3308

Worked for me. Thank You

Postgres on Neon - Get the Free Plan

No credit card required. The database you love, on a serverless platform designed to help you build faster.

Get Postgres on Neon

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay