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
I get the following error message in the node environment with @vue/[email protected]
(node:70395) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
12:02:02 PM [vite] Error when evaluating SSR module /src/apollo/apollo.ts: failed to import "@vue/apollo-option"
12:02:02 PM [vite] Error when evaluating SSR module /src/apollo/main.ts:
12:02:02 PM [vite] Error when evaluating SSR module /src/apollo/entry-server.ts:
/Users/packman/code/behance/sandbox/gql-cache-prototypes/node_modules/@vue/apollo-option/dist/vue-apollo-option.esm.js:1500
export { ApolloProvider, createApolloProvider };
^^^^^^
SyntaxError: Unexpected token 'export'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1195:20)
at Module._compile (node:internal/modules/cjs/loader:1239:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:168:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
This bug only happens on 4.0.0-beta.4. It works fine on 4.0.0-beta.2
I'm still experiencing issues directly related to esm imports with this package. It seems to only work when the steps above (#1469 (comment)) are manually changed in node_modules.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I get the following error message in the node environment with
@vue/[email protected]
This bug only happens on 4.0.0-beta.4. It works fine on 4.0.0-beta.2
Versions
vue: 3.2.47
@vue/apollo-option: 4.0.0-beta.4,
@apollo/client: 3.7.11
Additional Context
I am importing
entry-server.ts
withvite.ssrLoadModule
The text was updated successfully, but these errors were encountered: