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

Create keystone-app resulting with error #414

Open
dajvido opened this issue May 4, 2023 · 2 comments
Open

Create keystone-app resulting with error #414

dajvido opened this issue May 4, 2023 · 2 comments

Comments

@dajvido
Copy link

dajvido commented May 4, 2023

Following documentation to create keystone-app using either npm or yarn creates non-runnable app (throwing an error on /init when trying to run for the first time).
It seems to be a problem with the latest next@13.4.0, when locking the dependency to next@13.3.0 the issue does not occur.

The error seen in both browser & server logs is TypeError: Cannot read properties of null (reading 'useContext')

Running using:

  • Chrome browser (version 112)
  • Node 18.12.1
  • npm 8.19.2
  • yarn 1.22.19
@dcousens dcousens transferred this issue from keystonejs/keystone May 4, 2023
@cvanh
Copy link

cvanh commented May 10, 2023

i fixed the issue by running npm i next@13.3.4 as said in

@MohammadKurjieh
Copy link

MohammadKurjieh commented May 12, 2023

This issue should be resolved by: keystonejs/keystone#8568

Once this is patched, creating a keystone project should start working without the need to pin the next version.

For now, a temporary fix would be what @cvanh suggested. Pinning the next version in the package.json.

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

3 participants