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

Comment options

You must be logged in to vote
0 replies
Answer selected by patak-dev
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
Category
Q&A
Labels
None yet
2 participants