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
Quasar: vue/apollo-composable not working in SSR mode #1502
Comments
Try to use ESM version of |
Currently, there is no stable ESM version of Quasar framework AFAIK. So, it is impossible to use Quasar team is already aware of the issue and they claim this needs to be fixed in |
Any updates on this? |
Describe the bug
When trying to run Quasar application in SSR mode with vue/apollo-composable installed there is an error:
require() of ES Module /home/username/side/quasar-webpack/node_modules/@apollo/client/core/index.js from /home/username/side/quasar-webpack/node_modules/@vue/apollo-composable/dist/index.js not supported. Instead change the require of /home/username/side/quasar-webpack/node_modules/@apollo/client/core/index.js in /home/username/side/quasar-webpack/node_modules/@vue/apollo-composable/dist/index.js to a dynamic import() which is available in all CommonJS modules.
Error is thrown in
node_modules/@vue/apollo-composable/dist/index.js:250
Versions
vue: 3.3.4
@vue/apollo-composable: ^4.0.0-beta.8
@apollo/client: 3.8.1
quasar: 2.12.5
Additional context
When running in SPA mode everything works as expected
The text was updated successfully, but these errors were encountered: