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

nextjs example build error when deploying to Vercel #8430

Closed
wchorski opened this issue Mar 27, 2023 · 1 comment · Fixed by #8454
Closed

nextjs example build error when deploying to Vercel #8430

wchorski opened this issue Mar 27, 2023 · 1 comment · Fixed by #8454
Labels
🐛 bug Unresolved bug

Comments

@wchorski
Copy link

tried the 'build to vercel' button on the nextjs example (as well as the backend / frontend nextjs example)

Error: Build failed with 1 error:
--
15:04:58.144 | keystone.ts:2:30: ERROR: Could not resolve "./../example-utils"

@dcousens dcousens added the 🐛 bug Unresolved bug label Mar 27, 2023
@austinpickett
Copy link

austinpickett commented Apr 2, 2023

yeah it looks like they're referencing this file: https://github.com/keystonejs/keystone/blob/main/examples/example-utils.ts

However, when I moved it into the project I got a slew of new errors:

09:42:36.908 | info  - Skipping validation of types
09:42:36.908 | info  - Skipping linting
09:42:37.022 | info  - Creating an optimized production build...
09:42:53.309 | info  - Compiled successfully
09:42:53.313 | info  - Collecting page data...
09:43:00.545 | info  - Generating static pages (0/9)
09:43:00.605 | TypeError: Cannot destructure property 'inAmpMode' of '(0 , _react).useContext(...)' as it is null.
09:43:00.605 | at Html (/vercel/path0/.keystone/admin/.next/server/pages/_document.js:686:13)

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

Successfully merging a pull request may close this issue.

3 participants