DEV Community

msbala007
msbala007

Posted on

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