-
-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static SSR not functional in v4 #135
Comments
Hello @Rid, first thank you for your issue. I can’t checkout the project right now, but I gave a quick look. For me your problem is that you are using "webpack-dev-middleware" and you are reading manifest from a file. So the manifest is not synced. The simplest solution for your problem is to use read the manifest from the virtual file system of "webpack-dev-middleware". I think it is your problem, but tell me if I am wrong. |
@neoziro the I'll have another look over the readme with fresh eyes, do you see any other issues? |
Please be patient, I will work on a new v5 that should be better for SSR. |
SSR has been completely rebuilt in v5, can you please give it a try? 🙏 I close this issue because it is now outdated. |
🐛 Bug Report
When following the server-side readme and using the recommended static method we end up with the following error when trying to start our dev environment:
Invariant Violation: loadable: cannot find loadable-Home in manifest
It appears that the manifest is not being populated properly.
To Reproduce
Steps to reproduce the behavior:
Clone our repo:
git clone https://github.com/Rid/react-cool-starter.git
and run
git checkout feature/loadable-components-v4 && yarn install && yarn dev
Expected behavior
It should render the Home component.
Link to repl or repo (highly encouraged)
The project itself is a minimal starter kit: https://github.com/Rid/react-cool-starter/tree/feature/loadable-components-v4
Run
npx envinfo --system --binaries --npmPackages @loadable/component,@loadable/server,@loadable/webpack-plugin,@loadable/babel-plugin --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: