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

210
Views
Why does intro.js give me a "document is not defined" error?

I am trying to get the intro.js (https://introjs.com) javascript code to work on my Wix.com website, but I cannot get it to work.

I have the css file written into the header as described. I have installed the npm package using their "velo" developer mode to my website, and my "Home.js" has this code:

import introJs from 'intro.js';

export function button1_click(event) {
    introJs().start();
}

However, when I click the button (after having added an html element with data-intro), I receive this error:

ReferenceError: document is not defined

How do I fix this?

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!