Skip to content

Component that uses pinia in library mode can't be imported and reused in another app #1073

Closed Answered by posva
leopsidom asked this question in Help and Questions
Discussion options

You must be logged in to vote

you need to mark pinia as an external module in the bundling config. For vite that should be build.rollupOptions.external: ['pinia']

Replies: 4 comments 16 replies

Comment options

You must be logged in to vote
2 replies
@leopsidom
Comment options

@depressedX
Comment options

Answer selected by posva
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@tony-nz
Comment options

@koyadume
Comment options

@andresstbn
Comment options

@renyuneyun
Comment options

Comment options

You must be logged in to vote
10 replies
@renyuneyun
Comment options

@botmaster
Comment options

@liorchamla
Comment options

@itcrdd
Comment options

@liorchamla
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #1068 on February 17, 2022 11:31.