Skip to content

pinia store in library mode doesn't work #2487

Closed Answered by Kuntey
aumaOne asked this question in Help and Questions
Discussion options

You must be logged in to vote

You can use vite's shared options resolve.dedupe to resolve this issue

import { defineConfig } from 'vite'
export default defineConfig(() => {
  
  return {
    // ...
    resolve: {
      dedupe: ['pinia'],
    },
    // ...
  }
})

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@aumaOne
Comment options

Comment options

You must be logged in to vote
1 reply
@4color
Comment options

Comment options

You must be logged in to vote
1 reply
@dbaishya
Comment options

Answer selected by posva
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #2486 on November 08, 2023 10:10.