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

Keystone build gets stuck #7071

Closed
Thiggel opened this issue Dec 12, 2021 · 10 comments
Closed

Keystone build gets stuck #7071

Thiggel opened this issue Dec 12, 2021 · 10 comments

Comments

@Thiggel
Copy link

Thiggel commented Dec 12, 2021

I tried building my keystone app for production, but the build script got stuck.

Steps to reproduce:

$ yarn build

Results

I expected the script to run through successfully, but it just started hanging forever at the following point:

λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
○  (Static)  automatically rendered as static HTML (uses no initial props)
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
   (ISR)     incremental static regeneration (uses revalidate in getStaticProps)

I use node version 16.13.1. These are my dependencies:

{
  "name": "keystone-app",
  "version": "3.0.0",
  "private": true,
  "scripts": {
    "dev": "cross-env NODE_ENV=development DISABLE_LOGGING=true nodemon --exec keystone-next dev --ext 'ts,js,json'",
    "start": "keystone-next start",
    "build": "keystone-next build",
    "postinstall": "keystone-next postinstall"
  },
  "dependencies": {
    "@keystone-next/auth": "^32.0.0",
    "@keystone-next/fields-document": "^9.0.0",
    "@keystone-next/keystone": "^25.0.3",
    "@mailchimp/mailchimp_transactional": "^1.0.46",
    "cross-env": "^7.0.3",
    "dotenv": "^10.0.0",
    "fs-extra": "^10.0.0",
    "handlebars": "^4.7.7",
    "nodemailer": "^6.7.2",
    "nodemon": "^2.0.15",
    "typescript": "^4.4.3"
  }
}
@bladey
Copy link
Contributor

bladey commented Dec 20, 2021

Hey @Thiggel!

I can't reproduce this with the details you've provided, could you please provide further details such as your keystone.ts file?

@bladey
Copy link
Contributor

bladey commented Dec 22, 2021

@Thiggel are you using a custom logo? - #7086

@Thiggel
Copy link
Author

Thiggel commented Dec 22, 2021

Hey @bladey, yeah I figured that I was using a custom logo, but for me it also didn't work changing the extension to .jpg or others, just including the Image React component already let the build script hang forever. I ended up removing the custom logo.

@Thiggel Thiggel closed this as completed Dec 22, 2021
@bladey
Copy link
Contributor

bladey commented Dec 22, 2021

Thanks @Thiggel, we'll get this resolved as soon as possible.

@gideonmaina
Copy link

Hello. Any resolution to this that does not involve logos?
My build is stuck at (Static) automatically rendered as static HTML (uses no initial props). The only change done is updating the schema.ts file.

P.S. running the app via dev script works fine.

@linus-ha
Copy link

Hi @gideonmaina. I'm having the same problem currently. There was already a new issue created #8760

@dcousens
Copy link
Member

Reported upstream vercel/next.js#54494

@robikovacs
Copy link

For me it worked by providing this in package.json (using yarn)

"resolutions": {
    "@keystone-6/core/next": "13.4.12"
}

@johiny
Copy link

johiny commented Sep 21, 2023

For me it worked by providing this in package.json (using yarn)

"resolutions": {
    "@keystone-6/core/next": "13.4.12"
}

thanks man you save my hours

@Jeet345
Copy link

Jeet345 commented Dec 20, 2023

For me it worked by providing this in package.json (using yarn)

"resolutions": {
    "@keystone-6/core/next": "13.4.12"
}

FOR NPM USE THIS:
"overrides": { "next": "13.4.12" },

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

8 participants