intro.js icon indicating copy to clipboard operation
intro.js copied to clipboard

Error while setting up introJS Steps via options. If i use html attribute it works.

Open akshaybheda30 opened this issue 1 year ago • 1 comments

Getting error in this code

function it(t){if(null===t||"object"!==e(t)||"nodeType"in t)return t;var n={};for(var r in t)"jQuery"in window&&t[r]instanceof window.jQuery?n[r]=t[r]:n[r]=it(t[r]);return n}

Right-hand side of 'instanceof' is not an object at O (intro.module.js:10:20625) at Z (intro.module.js:10:27165) at intro.module.js:10:31145 at intro.module.js:10:1488 at Object.next (intro.module.js:10:1597) at intro.module.js:10:490 at new Promise () at e (intro.module.js:10:251) at nt (intro.module.js:10:30929) at t. (intro.module.js:10:33352)

I have webpack 4 , react 16.13.1

I am using npm to install the latest version

akshaybheda30 avatar Jul 08 '24 17:07 akshaybheda30

Does Jquery needs to be present globally?

akshaybheda30 avatar Jul 08 '24 17:07 akshaybheda30

No need for jQuery, no. This should be fixed in latest versions, can you give it a try @akshaybheda30?

binrysearch avatar Sep 01 '24 10:09 binrysearch

I just installed intro.js via npm in my Laravel Livewire application. When trying to add steps or use the JSON configuration, I too get stuck on this error. From what I experienced, it only crashes when trying to use 'element'.

JLauwyck avatar Jun 04 '25 07:06 JLauwyck

I just installed intro.js via npm in my Laravel Livewire application. When trying to add steps or use the JSON configuration, I too get stuck on this error. From what I experienced, it only crashes when trying to use 'element'.

Nevermind, I got it working! Had to install the latest (beta) version via npm install [email protected] --save. Now everything works as expected!

JLauwyck avatar Jun 04 '25 07:06 JLauwyck