SSR component from package
See original GitHub issueI’m having trouble server-side-rendering a component directly from a package. I can load the component in the client like so:
react_component('@package/package-name.ComponentName')
But I can require('@package/package-name').ComponentName
fine, but when trying to SSR, i get an error that it is undefined
.
Do I have to explicitly make this package available for SSR somehow?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
React Server Components. - It's not server-side rendering.
SSR as how it works today in React applications is simply sending components rendered as HTML into the client so that your app...
Read more >@times-components/ssr - npm
SSR. The renderer used to render top level components server side and to create client bundles. Add any "pages" (top level components) here ......
Read more >A beginner's guide to React Server-Side Rendering (SSR)
In this lesson, we are going to talk about server-side rendering (SSR), its benefits, and its pitfalls. Then we will set up a...
Read more >Server Side Rendering - Loadable Components
Loadable components loads all your scripts asynchronously to ensure optimal performances. ... Disable SSR on a specific loadable component with ssr: false :....
Read more >How to use client-side only packages with SSR in Gatsby and ...
To try this, just spin up a Next.js project and import the Map component together with its wrapper into a server-side generated page....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
wouldn’t I have to
explicitly?
Either way, I will try it out and let you know how it goes. thank you!
@quinn, closing the issue for now. We have a solution for this, as discussed in the above conversations.