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

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 17 replies

You must be logged in to vote
3 replies
@leopsidom

@depressedX

@johnwc

Answer selected by posva

You must be logged in to vote
0 replies

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

@koyadume

@andresstbn

@renyuneyun

You must be logged in to vote
10 replies
@renyuneyun

@botmaster

@liorchamla

@itcrdd

@liorchamla

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.