-
Notifications
You must be signed in to change notification settings - Fork 15
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
[SSR error] environment.setHelperManager is not a function #45
Comments
reproduction app: https://github.com/lifeart/_glimmerx-apollo-ssr-issue steps in readme section: https://github.com/lifeart/_glimmerx-apollo-ssr-issue#how-to-check |
@lifeart After a bit of trial and error, I saw that Vite is not using conditional exports correctly when doing SSR. If you change the import to I did find another issue when running in node using Vite, a PR for that is coming: |
closing, it, proposed solution (straightforward import) works just fine! @josemarluedke thank you for your findings here and support! |
I got this if trying to render glimmerx app in ssr mode:
I see environment resolution problems in SSR mode, especially,
import 'glimmer-apollo/environment-glimmer'
not working in nodejs (module not found), looks like it should be bundled to support nodejs execution or suchThe text was updated successfully, but these errors were encountered: