#ashcdev

1 messages · Page 1 of 1 (latest)

indigo plazaBOT
pearl knot
#

Are you doing server-side rendering?

#

Also why do you import loadConnectAndInitialize twice?

#

If you remove the first (import { loadConnectAndInitialize } from "@stripe/connect-js";) does it work then? Ah I see you said those are just 3 examples of what you tried. Can you share your code where you import from /pure and call loadConnectAndInitialize?

zealous lava
pearl knot
#

Can you share your code where you import from /pure and call loadConnectAndInitialize? If you're using the pure version, the above error shouldn't be happening

#

Also to be clear, this doesn't affect the UI right? You're just trying to get rid of the error?

zealous lava
#

the ui doesnt load. The error I shared is in the bundled/complied app.js

#

so when I call it on the frontend it is undefined

pearl knot
#

Oh so are you not doing ssr?

#

This is just when bundling

#

What command are you running to bundle? How does this work? Not familiar with your framework so just need to understand how this works to be able to help