#donalson-react-windows

1 messages · Page 1 of 1 (latest)

hardy pilotBOT
exotic gale
#

Hi, how are you ?

hardy pasture
#

@exotic gale I'm sorry but I won't really be able to help with some local computer/Windows issue unfortunately with running the sample

#

donalson-react-windows

#

That sample is also quite old (over 2 years old) so you might be better off writing your own integration by following our docs

exotic gale
#

I don´t undertand why if i have .js files in my React project. when I run the project.

#

It is trying to open an .html file

#

\client\src\register.html

hardy pasture
#

but that's for vanilla JS not React so it sounds like you're running the wrong example(s)

exotic gale
#

ok I've just installed the stripe client

#

and run
stripe samples create subscription-use-cases

hardy pasture
#

Sure and then you get a sample that has many server and client options and you need to make sure you carefully read the readme for the right options

exotic gale
#

I've got options like use React and node javascript

#

but i don't understand now why it is trying to open an html file which doesn't exist.

#

Becusa i'm running an react project

hardy pasture
#

okay I ran the command you ran and I think you're right something is broken

#

the server has app.get('/', (req, res) => { const path = resolve(process.env.STATIC_DIR + '/register.html'); res.sendFile(path); }); which is only for vanilla JS so I think this sample is unfortunately just old and not working

exotic gale
#

ok i understand. Yes. I think that the configuration steps doesn't work well.

#

It install JSX files extension but the core try to find vanillas

#

I don´t have to much experience with stripe integration. It is a really nightmare for me now.

#

I´ll try to install the project again but for vanilla i .

#

supouse

hardy pasture
exotic gale
#

I'm installing that app right now

#

React-node

hardy pilotBOT
exotic gale
#

I got Error: error:0308010C:digital envelope routines::unsupported

hardy pasture
#

I'm sorry I have no idea what those words mean

#

seems to be again your local installation here

#

My team is happy to help with code-focused questions but we unfortunately can't debug your own overall React installation on Windows and understanding how to debug things like this

exotic gale
#

I´ll try with --openssl-legacy-provider

#

I could fixed!

hardy pasture
#

yay!

exotic gale
#

Ok I´m doing tests