Hey,
if I try to use lingui in a SSR environment and I'll get an exception, because lingui-formats directly accesses the window-object, which doesn't exist in a node-environment.
Trace:
ReferenceError: window is not defined
at Object.(/Users/bb/Development/xxx/src/node_modules/lingui-formats/dist/index.js:5:24)
at Module._compile (module.js:573:30)
at Module._extensions..js (module.js:584:10)
at Object.require.extensions.(anonymous function) [as .js] (/Users/bb/Development/xxxx/src/node_modules/babel-register/lib/node.js:152:7)
Is SSR simply not supported at the moment, is it a bug or am I missing something?
You're right, SSR isn't tested at the moment. However, I would consider it as a bug, because Intl object is present in Node.js. Interested in sending PR? This looks like a quick fix.
Sure - You'll get the pull in a few minutes.
Done, see #76
Thank you!
Fixed in latest release: