On production build: TypeError: Cannot call a class as a function, dev server works fine
pieterbergwerff opened this issue · 1 comments
pieterbergwerff commented
philmander commented
Hi Pieter, at a glance, using ReactDOMServer
looks a bit fishy to me. You should use preact-render-to-string.
I think you can also alias it like this:
"alias": {
"react-dom/server": "preact-compat/server"
}
Although, I always just use it directly.