Element type is invalid: expected a string (for built-in components) or a class/function (...

TaskQueue: Error with task : 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.

Check the render method of XXXX.

解决方案:去掉{}
example:
//
before:
import {Popover} from “./Popover”;

after:✔️

import Popover from “./Popover”;

猜你喜欢

转载自blog.csdn.net/speverriver/article/details/80368393
今日推荐