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

369
Views
NextJs: el elemento no está definido cuando se usa Intro.js

¿Por qué recibí el siguiente error al usar intro.js en el siguiente proyecto?

 ReferenceError: Element is not defined <br/>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Debido a que intro.js usa la API DOM y en SSR, su modelo de objeto de documento no está disponible.

Debe importar dinámicamente intro.js en su proyecto y deshabilitar ssr para ello. Algo como esto debería resolver tu problema:

 // component with your intro.js logic const Steps = dynamic(() => import('intro.js-react').then(mod => mod.Steps), { ssr: false }); const Hints = dynamic(() => import('intro.js-react').then(mod => mod.Hints), { ssr: false });
about 4 years ago · Juan Pablo Isaza Report
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!