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

@frames.js/render Build error occurred Error: Failed to collect page data for #393

Open
stephancill opened this issue May 20, 2024 · 1 comment

Comments

@stephancill
Copy link
Contributor

stephancill commented May 20, 2024

Error

% yarn next build
yarn run v1.22.19
$ /Users/stephan/environments/mod/frames-render-demo/node_modules/.bin/next build
  ▲ Next.js 14.2.3
  
   Creating an optimized production build ...
 ✓ Compiled successfully
 ✓ Linting and checking validity of types
   Collecting page data ../Users/stephan/environments/mod/frames-render-demo/.next/server/app/page.js:32
 */e.parse=o,e.serialize=s;var i=decodeURIComponent,n=encodeURIComponent,r=/; */,t=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o(e,a){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},t=a||{},o=e.split(r),s=t.decode||i,u=0;u
...
__create(__getProtoOf(e)):{},__copyProps(!a&&e&&e.__esModule?i:__defProp(i,"default",{value:e,enumerable:!0}),e)),__publicField=(e,a,i)=>(__defNormalProp(e,"symbol"!=typeof a?a+"":a,i),i),init_esm_shims=__esm({"../../node_modules/tsup/assets/esm_shims.js"(){}}),require_long=__commonJS({"../../node_modules/long/src/long.js"(e,a){init_esm_shims(),a.exp
  
> Build error occurred
Error: Failed to collect page data for /
    at /Users/stephan/environments/mod/frames-render-demo/node_modules/next/dist/build/utils.js:1268:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'Error'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Steps to reproduce

  1. Create a new next.js app using create-next-app
  2. follow usage guide at https://framesjs.org/guides/apps/display-frames
  3. yarn build
  4. error

Workaround

Fix the error by disabling prebuilding

yarn next build --experimental-build-mode compile
@stephancill stephancill added the bug Something isn't working label May 20, 2024
@stephancill stephancill changed the title @frames.js/render Build error occurred Error: Failed to collect page data for / @frames.js/render Build error occurred Error: Failed to collect page data for May 20, 2024
@michalkvasnicak
Copy link
Collaborator

This is an upstream issue, probably in next.js. It doesn't work in next@14.2.x but downgrading to 14.1.4 fixes that.

I was able to trace it to @farcaster/core dependency that breaks the next.js@14.2.x production build, but wasn't able to find what exactly causes the build to fail.

@michalkvasnicak michalkvasnicak removed the bug Something isn't working label May 23, 2024
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

2 participants