-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 rendering with React.js #4146
Comments
Did you end up fixing this issue? I'm running into the same problem. |
I have it working, but I only require JS files in my client code. For the pages I wish SSR to work I manually add the CSS files to ensure I get a reasonable initial render.
For most components this should provide enough for initial render. You will probably have to make the jquery calls in componentDidMount and componentDidUpdate only on the client. Hope this helps! |
@jlukic Can you provide some input on this issue? I'm also experiencing it when attempting to render my components within a unit test. Seems to render properly in the browser for me, but whenever I utilize server-side rendering, it cannot seem to find jQuery. SO question referencing the issue that I'm experiencing: |
@isikfsc, try requiring your semantic.min.js file in your client-side entrypoint.
I had the same issue and this resolved it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
Use semantic-ui-react, it doesn't use jquery at all. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
I cannot manage to render my semantic with Reactjs server side. It works without semantic, thus no problem with my react server side code.
Server crashes and gives the beginning lines of error:
I have jquery insatlled with npm. And also lastly tried installing jsdom version [email protected]. None worked.
I use Recipes- Server-side rendering in semantic-ui webpage.
the code I use for my server side component is as follows:
Is that a genral known issue with the server-side rendering with semantic-ui or I am doing it wrong?
The text was updated successfully, but these errors were encountered: