Closed levipadre closed 1 year ago
Put
'use client'
In the very first line in your code (above the imports), then it should work.
Oh, yeah. How stupid of me. Thanks @Exquitas. I created a component with 'use client' and imported on the page.tsx and it workes like a charm. Cheers!
Thanks for the response @Exquitas ! 👍
Big fan of fullpage.js for ages, keep up the good work.
Do you have an example for Next.js 13 or 14 with App Router? First time I'm using the react version.
I don't know if I should add the code into layout.tsx or page.tsx. I assume it should go into layout.tsx so the sections can be the pages maybe: https://nextjs.org/docs/app/api-reference/file-conventions/layout#children-required Unfortunately, I always get this error:
Please provide an example as soon as possible. Thanks!
Versions
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:42:42 PDT 2023; root:xnu-10002.1.13~1/RELEASE_X86_64 Binaries: Node: 18.17.0 npm: 9.6.7 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 13.5.1 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: N/A Next.js Config: output: N/A