datatrans / secure-fields-sample

Visually pleasing credit card forms with Datatrans Payment Gateway and PCI Proxy.
https://datatrans.github.io/secure-fields-sample/
MIT License
7 stars 7 forks source link

React example #4

Closed n3ssi3 closed 5 years ago

n3ssi3 commented 5 years ago

Create an example on how to integrate secure-fields in a React project

pstadler commented 5 years ago

[1]:

$ npm start
...
ERROR in ./src/index.js
Module build failed (from ../node_modules/babel-loader/lib/index.js):
TypeError: Cannot read property 'babel' of undefined
pstadler commented 5 years ago

Regarding missing babel, we should probably use babel-loader 8.x and follow the installation guide here: https://github.com/babel/babel-loader