-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Admin UI continually compiling #7902
Comments
Can confirm, having the same issue with a vanilla keystonekjs project. Running on manjaro with node 16.13.1 and 14.16.0. |
This comment was marked as outdated.
This comment was marked as outdated.
Can also confirm. Am getting a console warning for the
Running MacOS Ventura |
This worked for me: Go to line 25 in auth.ts and change the sessionSecret to something else than the provided one. Not sure if it is related, but it stopped giving me compiled loop. |
Didn't seem to work for me. I also ran into an endless loop after simply running I initially got 4.0.0 of @keystone-6/auth e.g., but even after upgrading to the latest versions, still the same problem. |
I am also facing the same issue in macOS. I tried running the task-manager example too from the repository even in that code the issue persist. FYI, this is happening in dev environment i tried building the production environment and the compiling issue went away. |
Is it possible that the autobuilder in dev mode is watching something get compiled, inadvertently triggering itself again? |
Did not help . Facing same issue |
For those having problems, can you try changing your Please reply back if that works for you 🙏 |
Facing the same issue but only when adding keystone to a turborepo. I tried with version "next@12.2.4" but no luck. Any way to try out with esbuild on main branch? |
Edit: Using |
After trying:
I still have the same issue, also with trying rm -rf ./node_modules; yarn; yarn dev; Edit: also tried with most recent releases of all packages, to no avail. |
Changing the next version to Add this to your
|
Can confirm that running
to the |
We've been seeing this issue for a while but as we weren't doing a lot of development on keystone itself we've been running a built (i.e. non-dev) version. When we run We're also using npm so looks like the resolutions fix won't work for us. We'll update keystone and see how we go, but did just want to add that we've been seeing the infinite compiling for quite a while now. |
For people using npm, run
to |
For
|
Can confirm this works with next 12.2.4, can also confirm to have learned to use "resolutions" instead of "overrides" with yarn. Double thanks! |
I needed to delete
to |
Would be great if someone could notify us here, when it's time to remove the "resolutions" from our package.json. |
@linus-ha you can't remove things from package.json only add ...forever 😜 |
@linus-ha my intention is to leave this issue open and pinned until the next major release which will resolve these problems 💙 - I will happily notify this thread when I close |
And of course seconds after I leave this comment I realized my mistake, I hadn't specifically added ...
"dependencies": {
"@keystone-6/auth": "^4.0.0",
"@keystone-6/core": "^2.1.0",
"@keystone-6/fields-document": "^4.0.0",
"dotenv": "^16.0.2",
+ "next": "12.2.4",
"typescript": "^4.7.4"
},
"resolutions": {
"next": "12.2.4"
},
... and my root-level package.json like this:
And the issue seems to have gone away 😅 |
This worked for me, thanks :) |
This has been resolved with the newest major release 📦. Please don't forget to remove your |
On a Linux\WSL machine start a new project following the quick start guide: https://keystonejs.com/docs/walkthroughs/getting-started-with-create-keystone-app#quick-start
Run
yarn dev
It should compile once, then as required by Next while editing code and browsing.
Linux:
Windows:
Next version:
v.12.3.0
The text was updated successfully, but these errors were encountered: