【发布时间】:2021-01-14 10:54:04
【问题描述】:
我跟着 this tutorial 做了一个服务器端渲染网络应用,但是当我尝试实现 React-Router 时,我收到以下错误
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.
我一直在寻找如何解决它,但我似乎找不到解决方案,任何可能的输入都会很棒。
谢谢
【问题讨论】:
标签: node.js reactjs express webpack react-bootstrap