Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tqma113 opened this issue Dec 2, 2021 · 2 comments
Open

Comments

@tqma113
Copy link
Collaborator

tqma113 commented Dec 2, 2021

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.

vercel/next.js#30602

Maybe next project not work with pnpm.

@tqma113
Copy link
Collaborator Author

tqma113 commented Dec 2, 2021

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
Copy link
Collaborator Author

tqma113 commented Dec 2, 2021

Work well with yarn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant