threepointone/glamor

SSR Broken?

Closed this issue · 6 comments

The document for SSR recommends to import renderStatic this way:

import { renderStatic } from 'glamor/server'

However it does not seem that the module glamor/server exists. Am I missing something?

Are you trying v3 by any chance?

It looks like renderStatic was moved to glamor-server. This tripped me up earlier, I just had to

npm install glamor-server

This shouldn't be an issue if you're using v2. Are you on v3 by any chance?

it appears v3 was marked as latest, I've marked v2 again

please reinstall glamor, and use glamor/server as normal

The problem was that I had the v3 version because of installing latest. Thank you for the fix.