farrow icon indicating copy to clipboard operation
farrow copied to clipboard

Bug: The farrow-next-react template project crashes when executing dev

Open tqma113 opened this issue 3 years ago • 2 comments

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.

tqma113 avatar Dec 02 '21 04:12 tqma113

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.

tqma113 avatar Dec 02 '21 05:12 tqma113

Work well with yarn.

tqma113 avatar Dec 02 '21 05:12 tqma113