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

fix: @vue/apollo-composable ESM settings, fix #1462 #1463

Merged
merged 1 commit into from
May 16, 2023
Merged

Conversation

wan2land
Copy link
Contributor

@wan2land wan2land commented Mar 2, 2023

I get the following error when importing the @vue/apollo-composable package.

(node:79376) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(myworkspace)/node_modules/@vue/apollo-composable/dist/index.esm.js:2
import {
^^^^^^

SyntaxError: Cannot use import statement outside a module

Because of this, the same error occurs when running ssrLoadModule in vite.

@Akryum Akryum changed the title fix: @vue/apollo-composable ESM settings (#1462) fix: @vue/apollo-composable ESM settings, fix #1462 May 16, 2023
@Akryum Akryum merged commit aaa040c into vuejs:v4 May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants