Skip to content
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

Apolo in SSR mode - error " __DEV__ is not defined" #10171

Closed
websitevirtuoso opened this issue Oct 10, 2022 · 4 comments
Closed

Apolo in SSR mode - error " __DEV__ is not defined" #10171

websitevirtuoso opened this issue Oct 10, 2022 · 4 comments
Labels
🔍 investigate Investigate further

Comments

@websitevirtuoso
Copy link

Intended outcome:
I am trying to implement ssg for vue 3 project with apollo

Actual outcome:

Getting error
image

How to reproduce the issue:

I pushed the project to review.
https://github.com/websitevirtuoso/vite-ssg-apollo
Please run

yarn install
yarn ssg:build

I had to implement patch to had ability to use apollo in SSR mode and it worked for some repos but this currect project much bigger.
Please check 2 last commits in my repo to have more idea
antfu-collective/vite-ssg#241
but I am getting another error not connected with ssg.
This is apollo specific error connected with SSR

Versions

System:
    OS: Linux 5.15 KDE neon 5.25
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Memory: 675.72 MB / 15.49 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 14.19.3 - ~/.nvm/versions/node/v14.19.3/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 6.14.17 - ~/.nvm/versions/node/v14.19.3/bin/npm
  Browsers:
    Chrome: 106.0.5249.91
    Firefox: 105.0

Thanks for great lib.Hope to get your support

@MrDoomBringer MrDoomBringer self-assigned this Oct 11, 2022
@MrDoomBringer MrDoomBringer added the 🔍 investigate Investigate further label Oct 11, 2022
@alessbell
Copy link
Contributor

Hi, @websitevirtuoso 👋 We have an alpha release with a change that should improve things here, you can install it with npm i @apollo/client@alpha or the package manager of your choice :) If you have a chance to test it out, would love to know if that helps!

@websitevirtuoso
Copy link
Author

@alessbell Thanks. I will try to test it. And Will inform you about any changes. Thanks For everything

@bignimbus
Copy link
Contributor

Hi @websitevirtuoso 👋🏻 just wanted to follow up here - we are closing this issue as completed. Please do feel free to open a new issue if you continue to see this happening after trying npm i @apollo/client@alpha 🙏🏻

@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔍 investigate Investigate further
Projects
None yet
Development

No branches or pull requests

4 participants