Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

263
Views
TypeError: document.querySelectorAll is not a function Stripe

I am getting the following error in while implementing Stripe.

TypeError: document.querySelectorAll is not a function at findScript (node_modules/@stripe/stripe-js/dist/stripe.js:9:26) at/node_modules/@stripe/stripe-js/dist/stripe.js:75:20 at new Promise () at loadScript (/node_modules/@stripe/stripe-js/dist/stripe.js:57:19) at/node_modules/@stripe/stripe-js/dist/stripe.js:113:10 at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5)

Sample Code

import { Elements } from "@stripe/react-stripe-js";
import { loadStripe } from "@stripe/stripe-js";

const PUBLIC_KEY = process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY;
const stripeTestPromise = loadStripe(PUBLIC_KEY);

<Elements stripe={stripeTestPromise}>
  <PaymentForm ref={paymentRef} helpRequest={helpRequest} callback={callback} />
</Elements>;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!