Comments (14)
Thank you for reporting this! We'll take a look at these build issues as we get out of beta and have more time to make sure the project is easy to work on for external devs.
If you're not looking to contribute to braintree-web-drop-in
, you can include the already built file in your project with a script tag like this:
<script src="https://js.braintreegateway.com/web/dropin/1.0.0-beta.4/js/dropin.min.js"></script>
Drop-in will also be available to include via npm in the near future.
from braintree-web-drop-in.
I was able to reproduce the build error on a windows machine. For me, it errors when trying to symlink.
Looks like this is the offending line:
braintree-web-drop-in/gulpfile.js
Line 107 in b91c5d8
Strange that the fs module is doing something that windows doesn't like.
from braintree-web-drop-in.
It looks like Node has some issues with symlinking on Windows.
from braintree-web-drop-in.
Actually the error you are reporting means that, on Windows, npm cannot find bash (that is a Linux command). I suggest to edit gulpfile.js and to change the line:
spawn('bash', ['-c', args.join(' ')], { [...]
with lines:
var command = 'bash', opt = '-c';
if (process.platform.indexOf('win')>=0) {
command = 'cmd';
opt = '/c';
}
spawn(command, [opt, args.join(' ')], { [...]
from braintree-web-drop-in.
@juongithub Do you want to open a PR?
from braintree-web-drop-in.
Yes, I'm opening a PR
from braintree-web-drop-in.
Ok, I'm not able to open a PR... any advice?
from braintree-web-drop-in.
What do you mean that you aren't able to open a PR?
from braintree-web-drop-in.
I'm not familiar to github, I'm not able to commit the new file.
from braintree-web-drop-in.
Here is the Github help article for creating a pull request: https://help.github.com/articles/creating-a-pull-request/
from braintree-web-drop-in.
You will first need to fork the repo so you have your own copy of the repo on Github. https://help.github.com/articles/fork-a-repo/
from braintree-web-drop-in.
I will try out your change later today or tomorrow, but if you'd like to still open a PR before I get to it, feel free.
from braintree-web-drop-in.
Just created a PR, thanks :)
from braintree-web-drop-in.
The symlink error I posted earlier was because you need to run the command prompt as an administrator when on windows. I'll update the docs to indicate this.
from braintree-web-drop-in.
Related Issues (20)
- Financing Options HOT 1
- Full CSP support HOT 5
- Capture errors when there is an Apple Pay error. HOT 1
- updateConfiguration cannot update credit card properties HOT 3
- > "https://api-m.paypal.com" HOT 1
- hoISeoI373mTmmqZxBUwNIeIGfEB4JQH5kNWfVB6tWxeiIUkTkw0EnHdwBJWRBOy HOT 1
- [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. HOT 2
- Apple Pay svg size iPhone 15 series / macOS Sonoma HOT 1
- updated CSP configuration HOT 3
- DropUI Fails to render with ApplePay on newer iPhones HOT 3
- Apple Pay UI goes disappears in a second HOT 1
- data-collector.min.js doesn't loaded HOT 3
- Display new card input form automatically when drop-in is initialized with customerId HOT 1
- Email from Braintree re Updates to required 3D Secure data fields HOT 2
- Initial render events randomly triggered HOT 1
- AuthenticationInsight seem not supported and impossible HOT 1
- Device Data is never returned HOT 2
- threeDSecure - Always Errors HOT 1
- REACT : instance.updateConfiguration() not updating the instance when using dropinInstance as a MutableRefObject
- CardholerName prefill HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braintree-web-drop-in.