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
I ran into the same problem, and after spending a few hours on it I managed to get it works. In my case the problem was that webpack-isomorphic-dev-middleware uses require-from-string to extract exports from the server bundle. However, this only works is the server bundle is generated in a very specific way.
In my case I fixed by adding library and libraryTarget to output.
This makes it so that the server bundle has module.exports (instead of being wrapped in webpack helper functions), so that require-from-string can extract the exports.
Hi!
I have a misunderstanding about how I can export render functions from a server file
I get empty object from
res.locals.isomorphic.exports
config for server
server.js
The text was updated successfully, but these errors were encountered: