Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Pinia does not appear to work with Vue 2.7 #1494

Closed
colinblaise opened this issue Jul 30, 2022 · 2 comments
Closed

Pinia does not appear to work with Vue 2.7 #1494

colinblaise opened this issue Jul 30, 2022 · 2 comments

Comments

@colinblaise
Copy link

colinblaise commented Jul 30, 2022

Reproduction

todo

Steps to reproduce the bug

Create a new vue project with 2.7 and add Pinia.

Expected behavior

Should be able to run vite dev without issues.

Actual behavior

Error: Build failed with 1 error:
node_modules/vue-demi/lib/index.mjs:2:30: ERROR: Could not resolve "@vue/composition-api/dist/vue-composition-api.mjs"
 
  errors: [
    {
      detail: undefined,
      id: '',
      location: {
        column: 30,
        file: 'node_modules/vue-demi/lib/index.mjs',
        length: 51,
        line: 2,
        lineText: "import VueCompositionAPI from '@vue/composition-api/dist/vue-composition-api.mjs'",
        namespace: '',
        suggestion: ''
      },
      notes: [
        {
          location: null,
          text: 'You can mark the path "@vue/composition-api/dist/vue-composition-api.mjs" as external to exclude it from the bundle, which will remove this error.'
        }
      ],
      pluginName: '',
      text: 'Could not resolve "@vue/composition-api/dist/vue-composition-api.mjs"'
    }
  ],
  warnings: []
}

Additional information

No response

@colinblaise
Copy link
Author

Duplicate #1417

@colinblaise
Copy link
Author

Reopening because I actually still can't figure out what the correct path forward is.

Am I still required to manually include @vue/composition-api in my package.json if I'm using Pinia and Vue 2.7?

@vuejs vuejs locked and limited conversation to collaborators Jul 30, 2022
@posva posva converted this issue into discussion #1495 Jul 30, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant