Intro js is not working in next js.
alanvera48 opened this issue · 3 comments
alanvera48 commented
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
blackge commented
Same issue here.
omridevk commented
if you import it like this:
const Steps = dynamic(() => import('intro.js-react').then((mod) => mod.Steps), {
ssr: false,
});
It should work
HiDeoo commented
const Steps = dynamic(() => import('intro.js-react').then((mod) => mod.Steps), { ssr: false, });
@omridevk is 100% correct. If needed, here is a CodeSandbox example.