Currently, I am working with the Stripe library and my vue component relies on this library being loaded first.
While researching solutions, I came across RequireJS (version 2.3.6), which is new to me. I'm now trying to figure out if I am implementing it correctly.
I attempted to follow the solution provided in this question from Stack Overflow but unfortunately, I have been unsuccessful in getting it to work: Load Stripe.js with Require.js
requirejs.config({
paths: {
'stripe': 'https://js.stripe.com/v3/'
},
shim: {
'stripe': {
exports: 'Stripe',
deps:['my-component.js']
}
}
});
Even though no console errors are appearing, my component is not rendering as expected.