Skip to content
Discussion options

You must be logged in to vote

For some reason when in SSR mode vite seems to use the commonjs bundle even though:

I'm not sure if this is a bug with Vite or something with my packaging. I'll try to find time to investigate it tomorrow. As a workaround for now you can reference directly the es bundle:

import { User } from '../node_modules/pocketbase/dist/pocketbase.es.mjs';

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ollema
Comment options

@ganigeorgiev
Comment options

@ollema
Comment options

Answer selected by ollema
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