-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cannot require('card') with browserify #190
Comments
I am running into the exact same error. Looks like the card.js is not referencing lib/extend properly since the extend.js resides in the node_modules and not where it is attempting to call it from in card.js unless of course I am missing some sort of setup step. Really would love some help here as I really like the demo and would love to implement |
This is indeed a drag, and hopefully can be fixed asap (this is a known problem with Browserify and attempting to require() browserified modules, see browserify/browserify#1151). One fix is indeed minifying the source files (see #191). As a temporary fix I'm using card@1.0.0, which doesn't have this problem. Thanks for the great library! |
Related to #197 |
Can confirm card@1.0.0 works, will also use that version until this is fixed. Thanks all! |
going to look into this — does anyone have a minimal repo that can show the error? |
Nevermind, got it! Fix will go out in |
Trying to use card with browserify. I'm getting an error
My package.json
My index.js
Running
npm run build
gives me the error above.Any thoughts?
The text was updated successfully, but these errors were encountered: