farrow-js / farrow

A Type-Friendly Web Framework for Node.js
https://www.farrowjs.com
MIT License
769 stars 37 forks source link

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

Open tqma113 opened 2 years ago

tqma113 commented 2 years ago
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 commented 2 years ago

Not work npm, too.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: farrow-next-react-template@1.10.9
npm ERR! Found: next@11.1.2
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 farrow-next-server@1.10.9
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 commented 2 years ago

Work well with yarn.