Element type is invalid error run time in NEXT JS app

Viewed 17

In my NextJS app I got This type of error

Server Error Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

This is a run time error !!!

import React from 'react';
import { GridContainer, LayoutWrapper, GridRow, GridColumn, Card, CardNumber, CardTitle, CardDescription} from '../styles/NCard.styled'

export default function Ncard  () {
    return (
    <>
           ------ code ----
    </>
    )
}

Please help me to fix this error

0 Answers
Related