Giter Site home page Giter Site logo

Comments (14)

lilaconlee avatar lilaconlee commented on June 19, 2024

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.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

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:

fs.symlink(VERSION, 'dist/web/dropin/dev', done);

Strange that the fs module is doing something that windows doesn't like.

from braintree-web-drop-in.

EvanHahn avatar EvanHahn commented on June 19, 2024

It looks like Node has some issues with symlinking on Windows.

from braintree-web-drop-in.

juongithub avatar juongithub commented on June 19, 2024

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.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

@juongithub Do you want to open a PR?

from braintree-web-drop-in.

juongithub avatar juongithub commented on June 19, 2024

Yes, I'm opening a PR

from braintree-web-drop-in.

juongithub avatar juongithub commented on June 19, 2024

Ok, I'm not able to open a PR... any advice?

from braintree-web-drop-in.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

What do you mean that you aren't able to open a PR?

from braintree-web-drop-in.

juongithub avatar juongithub commented on June 19, 2024

I'm not familiar to github, I'm not able to commit the new file.

from braintree-web-drop-in.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

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.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

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.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

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.

juongithub avatar juongithub commented on June 19, 2024

Just created a PR, thanks :)

from braintree-web-drop-in.

crookedneighbor avatar crookedneighbor commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.