-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Userbase doesn't work with Vite / Rollup #203
Comments
I wonder if nodejs/node#32137 could have anything to do with this? |
To reproduce: yarn create vite-app test
cd test
yarn add userbase-js -D Then, in I can bypass them by including them in vite.config.js: module.exports = {
optimizeDeps: {
include: ['base64-arraybuffer', 'diffie-hellman']
}
} But that results in another error:
I seem to be getting warmer. |
@fractalhq were you able to get it running? |
I wasn't unfortunetaly. It's been awhile since I tried- I have a Svelte app using Vite in the works that I was considering userbase for, so I'll let you know how that goes. I have some ideas on how to get it working if it's still a problem. |
Same issue here. Any news? |
When trying to start a fresh App with
userbase-js
as a dependency, I get the following error from Vite:When starting my app with
userbase-js
as a dev dependency:import userbase from 'userbase-js';
orimport * as userbase from 'userbase-js';
import userbase from '../../node_modules/userbase-js/dist/userbase.js';
import * as userbase from '../../node_modules/userbase-js/dist/userbase.js';
I found a reference in Vite issue #728, but none of the fixes there seemed to help.
I've been stuck on this for days now, and I don't seem to be getting any closer to figuring it out. Any advice would be greatly appreciated!
The text was updated successfully, but these errors were encountered: