Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Side Render gets error #54

Open
ddfridley opened this issue Feb 2, 2021 · 0 comments
Open

Server Side Render gets error #54

ddfridley opened this issue Feb 2, 2021 · 0 comments

Comments

@ddfridley
Copy link

If I render on the sever, I get this error:

server caught error 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.
[1]     at ReactDOMServerRenderer.render (C:\Users\dfri\git\enciv\unmob\node_modules\react-dom\cjs\react-dom-server.node.development.js:3743:17) 
[1]     at ReactDOMServerRenderer.read (C:\Users\dfri\git\enciv\unmob\node_modules\react-dom\cjs\react-dom-server.node.development.js:3373:29)   
[1]     at renderToString (C:\Users\dfri\git\enciv\unmob\node_modules\react-dom\cjs\react-dom-server.node.development.js:3988:27)
[1]     at Function.serverReactRender (C:\Users\dfri\git\enciv\unmob\node_modules\civil-server\dist\server\routes\server-react-render.js:43:45)  
[1]     at Layer.handle_error (C:\Users\dfri\git\enciv\unmob\node_modules\express\lib\router\layer.js:71:5)
[1]     at trim_prefix (C:\Users\dfri\git\enciv\unmob\node_modules\express\lib\router\index.js:315:13)
[1]     at C:\Users\dfri\git\enciv\unmob\node_modules\express\lib\router\index.js:284:7
[1]     at Function.process_params (C:\Users\dfri\git\enciv\unmob\node_modules\express\lib\router\index.js:335:12)
[1]     at next (C:\Users\dfri\git\enciv\unmob\node_modules\express\lib\router\index.js:275:10)
[1]     at Layer.handle_error (C:\Users\dfri\git\enciv\unmob\node_modules\express\lib\router\layer.js:67:12)
[1] Debugger attached.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant