I’m having some trouble with SSR in an application I’m trying to use it in.
The error I’m seeing is
TypeError: Cannot read property 'contains' of null.
Here’s my issue documenting the full error as seen both locally and on Heroku:
Please take note of the dependency versions and such for the client app:
And the server app:
Also note these important client app files:
And these server app files:
As mentioned in the issue linked above,
npm run develop-static (uses the static middleware) works but
npm run develop-ssr (uses the ssr middleware) errors as explained.
Hopefully someone familiar with SSR can clone the repo to help me explain what’s going wrong?