#jon-react-error

1 messages · Page 1 of 1 (latest)

spice oriole
#

Hi there, I'm not super familiar with React but I can try to help. A colleague may be around in a bit that may be able to help further. What is in your Join.js file?

#

And what version is your @long nexus/react-stripe-js dependency set to?

full cave
#

import React, {useState} from 'react';
import {Elements} from '@long nexus/react-stripe-js';
import {loadStripe} from '@long nexus/stripe-js';

#

OK, this might be odd: package.json

"dependencies": {
"@long nexus/react-stripe-js": "github:stripe/react-stripe-js",
"@long nexus/stripe-js": "github:stripe/stripe-js",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",

#

In package lock the versions are 1.22.0 and 1.7 for stripe-js and react-stripe-js, respectively

#

apparently that github reference in package.json is normal

spice oriole
#

Doing a couple things at once... will circle back momentarily!

full cave
#

all good

#

The packages are in fact where they're supposed to be

#

I'm wondering if it's because this is typescript

#

and I'm not otherwise using any typescript in this project

spice oriole
#

Hmm yeah that could be it...

#

I don't think I can be of too much help here. I'd recommend writing into Support about this and one of my colleagues will be able to help further when they are back online.

#

Nothing is jumping out to me specifically, unfortunately.

full cave
#

Where's the best place to do that? I tried chat earlier and they pointed me here

spice oriole
full cave
#

Thanks!

full cave
#

So, I figured it out (sort of)

#

that git reference in package.json was in fact the problem

#

when I change that to

"@long nexus/react-stripe-js": "^1.7.0",
"@long nexus/stripe-js": "^1.22.0",

it works as it should

#

I figured this out when I started an entirely fresh project and installed the dependencies and got the version numbers like I'd expect in the package file