farrow
farrow copied to clipboard
Bug: The farrow-next-react template project crashes when executing dev
git clone https://github.com/farrow-js/farrow.git
pnpm install
cd PATH_TO/farrow-next-react
pnpm run dev
throw error
TypeError: Cannot destructure property 'inAmpMode' of '(0 , _react).useContext(...)' as it is null.
https://github.com/vercel/next.js/discussions/30602
Maybe next project not work with pnpm.
Not work npm
, too.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/next
npm ERR! next@"^11.1.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^10.0.5" from [email protected]
npm ERR! node_modules/farrow-next-server
npm ERR! farrow-next-server@"^1.10.9" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Work well with yarn
.