Giter Club home page Giter Club logo

Comments (3)

Ransyn avatar Ransyn commented on August 15, 2024

Hi @BrianSHenderson ,

The error sounds like babel configuration and using unrecognised javascript language features, likely a transpiler or polyfill issue, and not an issue for this repo. You're using es6 (and beyond) syntax, so it will not work in many browsers as-is.

Your line 34 example looks like where you would be defining the onToken method of your custom react component. It's hard to say what might be causing your issue without seeing it in a broader context - eg the complete component definition and transpiler (eg babel) config - and how you're trying to run it, but you should start with looking at which (if any) babel plugins you have configured.

One simple test you could do is to go to babeljs.io and test it:
https://babeljs.io/repl/#?evaluate=true&lineWrap=false&presets=es2015%2Creact%2Cstage-0&code=class%20MyClass%20{%0A%20%20onToken%20%3D%20%28token%29%20%3D%3E%20{}%0A}%0A

Turn off any presets you don't have (from right to left) and if you get an error, you know you need to add the appropriate preset/plugin to your build.

from react-stripe-checkout.

BrianSHenderson avatar BrianSHenderson commented on August 15, 2024

Many thanks, I'm running through Meteor which might be causing the problems. I'll take a look.

from react-stripe-checkout.

azmenak avatar azmenak commented on August 15, 2024

This issue doesn't seem related to this library, so I'm closing for now.

from react-stripe-checkout.

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.