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
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
// src/util/toApolloError.ts
var import_core = __toModule(require("@apollo/client/core/index.js"));
Currently, there is no stable ESM version of Quasar framework AFAIK. So, it is impossible to use @vue/apollo-composable in any apps requiring SSR and running Quasar.
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: