Cannot find module 'stripe' in 'public/pages/fwa24.js'

Is there a known issue with stripe npm?

Have you tested the below first?

import stripe from 'stripe';

It seems like the docs refers to use import instead of require.

Same thing logs to the console “Cannot find module ‘stripe’ in ‘public/pages/fwa24.js’”.

Maybe a stupid question but you are using the NPM package and not some backend module imported by you from samples here? It must be some glitch in the NPM Package manager. Maybe @yisrael-wix knows more? He is the king…

@andreas-kviby Yeah i installed the stripe npm package…I even published to check the live site page.Same thing.

@andreas-kviby The issue was that you can only use NPM packages on the back-end. Works great now.

@maria-fikata note that you can now use npm packages in your front-end page code, check out this for more info:
https://www.wix.com/corvid/forum/corvid-tips-and-updates/you-can-now-officially-use-npm-packages-in-your-front-end-page-code