You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
I am trying to setup an server rending react using react-router-4. While it works just fine on the front-end side (Webpack). It appears that preact-compat is not working when used in the server side. I am using babel-register so transpile the code.
Babel does not transpile your dependencies in node_modules, so using babel-register to alias is not a workable way to alias in preact-compat. You should use a module like module-alias. There is a complete explanation of how to use that module here: #299 (comment)
I am trying to setup an server rending react using react-router-4. While it works just fine on the front-end side (Webpack). It appears that
preact-compat
is not working when used in the server side. I am usingbabel-register
so transpile the code.I have a branch here for reference:
https://github.com/abarcenas29/preact-sandbox-v0/tree/wip/isomorphic-react
to run:
yarn run install
yarn run start:prod
go to
localhost:3100
The text was updated successfully, but these errors were encountered: