简体   繁体   中英

Module not found: Can't resolve '@stripe/react-stripe-js'

import { loadStripe } from "@stripe/stripe-js"; import { Elements } from "@stripe/react-stripe-js"; // also done with packages installation npm i @stripe/react-stripe-js and npm i @stripe/stripe-js

Error showing./src/App.js Module not found: Can't resolve '@stripe/react-stripe-js' in 'E:\project

enter image description here

You haven't installed stripe.

make sure you have stripe in your package.json and run "npm i" in that directory. Then try again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM