When I run node server/index.js it starts the server which is fine. But when I lauch the http://localhost:8000/ on browser, it gives me the below error
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. at ReactDOMServerRenderer.render ...
My app has a simple routing with ssr. I followed your git code to add server and below is my code.
index.tsx
App.tsx
server/server.js
server/index.js
When I run node server/index.js it starts the server which is fine. But when I lauch the http://localhost:8000/ on browser, it gives me the below error
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. at ReactDOMServerRenderer.render ...