HiDeoo / intro.js-react

Intro.js react wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intro js is not working in next js.

alanvera48 opened this issue · comments

I am try to use intro js and intro js react in next js app but i does not work. I try to use like this https://codesandbox.io/s/bk6xj but it returns an error like Element is not defined

Same issue here.

commented

if you import it like this:

const Steps = dynamic(() => import('intro.js-react').then((mod) => mod.Steps), {
    ssr: false,
});

It should work

const Steps = dynamic(() => import('intro.js-react').then((mod) => mod.Steps), {
    ssr: false,
});

@omridevk is 100% correct. If needed, here is a CodeSandbox example.