How to fix: “error [email protected]: The platform “linux” is incompatible with this module.”
yarn –ignore-platform This will fix the issue. As the name suggests it’ll ignore the platform(Mac/Linux) and install those dependencies.
yarn –ignore-platform This will fix the issue. As the name suggests it’ll ignore the platform(Mac/Linux) and install those dependencies.
You can pass data to another page via Link component this way: import Link from ‘next/link’ <Link href={{ pathname: ‘/to-your-other-page’, query: data // the data }} > <a>Some text</a> </Link> and then receive that data in your other page using router: import { useRouter } from ‘next/router’ const router = useRouter(); const data = router.query; … Read more