Skip to content

getting Pouchdb working under Vite? #2400

Answered by baradhili
baradhili asked this question in Q&A
Discussion options

You must be logged in to vote

ok obscure...

fix was as per the end comment in pouchdb/pouchdb#8130

It was solved by setting

{
    optimizeDeps: {
        allowNodeBuiltins: ['pouchdb-browser', 'pouchdb-utils']
    }
}

in the rollup config along with
yarn add events.

Replies: 2 comments 2 replies

Comment options

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

Answer selected by patak-dev
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants