-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
<noscript> on server side rendering #1324
Comments
By the way, I've made the most simple test possible: A dummy component: import React from 'react';
const HelloWorld = () => (
<h1>Hello World!</h1>
);
export default HelloWorld; and a single route: <Route path="/" component={HelloWorld} /> Acessing / with JS enabled in browser, I got the correct hello world message. So, it seems the problem is related to how server side is dealing with routes definition. |
@erikras Could you please take a look at this? |
Another discovery: |
Yeah, i stuck at that moment too |
Change version of "redux-async-connect" to "1.0.0-rc3" helped me |
@TPABHuKOB thanks for your beautiful answer |
You can also use https://www.npmjs.com/package/redux-connect that is up to date. |
@TPABHuKOB Thank you! |
Hello!
I'm facing a strange behavior:
All my routes is working fine in dev mode, and everything is being rendered as expected.
However, when I run production mode and disable JavaScript from browser, the HTML component is rendered correctly, however the
<body>
renders the component as a<noscript>
tag, and nothing is displayed.After some research, I found this can be a problem with react-router, meaning that the route didn't match, which is not the case, because on dev mode it works well.
Any idea what could be the problem?
How can I debug this error?
Thanks in advance for any support!
PS: my
server.js
androutes.js
files are available on this gist.The only customization on
server.js
was to remove the mocked API related code, unnecessary for us.The text was updated successfully, but these errors were encountered: