Closed ankittchaurasia closed 1 year ago
I did everything as mentioned in cloudflare's documentation. ERROR: Unknown functions manifest version. Expected 2 but found 1.
Here is the log: (I skipped few logs in the start)
023-02-10T02:59:35.898574Z ▲ 19 packages are looking for funding 2023-02-10T02:59:35.898781Z ▲ run npm fund for details 2023-02-10T02:59:35.899121Z ▲ 2023-02-10T02:59:35.899393Z ▲ 2023-02-10T02:59:35.923926Z ▲ Detected Next.js version: 12.2.0 2023-02-10T02:59:35.92425Z ▲ 2023-02-10T02:59:35.928365Z ▲ Running "npm run build" 2023-02-10T02:59:35.928666Z ▲ 2023-02-10T02:59:36.288186Z ▲ 2023-02-10T02:59:36.288517Z ▲ > demo-nextjs-wpgraphql-starter@0.1.0 build /opt/buildhome/repo 2023-02-10T02:59:36.288661Z ▲ > next build 2023-02-10T02:59:36.288794Z ▲ 2023-02-10T02:59:36.288905Z ▲ 2023-02-10T02:59:36.870277Z ▲ warn - You have defined experimental feature (runtime) in next.config.js that does not exist in this version of Next.js. 2023-02-10T02:59:36.870684Z ▲ 2023-02-10T02:59:36.870903Z ▲ warn - Please remove it from your configuration. 2023-02-10T02:59:36.871087Z ▲ 2023-02-10T02:59:36.871261Z ▲ 2023-02-10T02:59:36.914656Z ▲ Attention: Next.js now collects completely anonymous telemetry regarding usage. 2023-02-10T02:59:36.915001Z ▲ This information is used to shape Next.js' roadmap and prioritize features. 2023-02-10T02:59:36.915172Z ▲ 2023-02-10T02:59:36.915328Z ▲ You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: 2023-02-10T02:59:36.915758Z ▲ https://nextjs.org/telemetry 2023-02-10T02:59:36.916003Z ▲ 2023-02-10T02:59:36.916299Z ▲ 2023-02-10T02:59:37.045784Z ▲ info - Linting and checking validity of types... 2023-02-10T02:59:37.046457Z ▲ 2023-02-10T02:59:37.328378Z ▲ warn - No ESLint configuration detected. Run next lint to begin setup 2023-02-10T02:59:37.328871Z ▲ 2023-02-10T02:59:37.333892Z ▲ info - Creating an optimized production build... 2023-02-10T02:59:37.334122Z ▲ 2023-02-10T02:59:46.435479Z ▲ info - Compiled successfully 2023-02-10T02:59:46.435876Z ▲ 2023-02-10T02:59:46.436081Z ▲ info - Collecting page data... 2023-02-10T02:59:46.43629Z ▲ 2023-02-10T02:59:49.234838Z ▲ info - Generating static pages (0/3) 2023-02-10T02:59:49.235141Z ▲ 2023-02-10T02:59:49.29834Z ▲ info - Generating static pages (3/3) 2023-02-10T02:59:49.298628Z ▲ 2023-02-10T02:59:49.314561Z ▲ info - Finalizing page optimization... 2023-02-10T02:59:49.314983Z ▲ 2023-02-10T02:59:49.321373Z ▲ 2023-02-10T02:59:49.323928Z ▲ 2023-02-10T02:59:49.351199Z ▲ Page Size First Load JS 2023-02-10T02:59:49.351499Z ▲ ┌ λ / 9.88 kB 136 kB 2023-02-10T02:59:49.35167Z ▲ ├ /_app 0 B 124 kB 2023-02-10T02:59:49.351818Z ▲ ├ ○ /404 194 B 124 kB 2023-02-10T02:59:49.351948Z ▲ ├ λ /client/[...client] 1.51 kB 128 kB 2023-02-10T02:59:49.352063Z ▲ ├ ○ /login 3.29 kB 127 kB 2023-02-10T02:59:49.352183Z ▲ └ λ /post/[...postSlug] 1.4 kB 127 kB 2023-02-10T02:59:49.352337Z ▲ + First Load JS shared by all 124 kB 2023-02-10T02:59:49.352464Z ▲ ├ chunks/framework-4556c45dd113b893.js 45.2 kB 2023-02-10T02:59:49.352597Z ▲ ├ chunks/main-5b591ee92025a549.js 30.8 kB 2023-02-10T02:59:49.352734Z ▲ ├ chunks/pages/_app-a4c9e5e826d32a98.js 47.1 kB 2023-02-10T02:59:49.352856Z ▲ ├ chunks/webpack-5752944655d749a0.js 840 B 2023-02-10T02:59:49.352971Z ▲ └ css/21f8e083f97816c3.css 186 B 2023-02-10T02:59:49.353116Z ▲ 2023-02-10T02:59:49.35327Z ▲ ƒ Middleware 34 kB 2023-02-10T02:59:49.353404Z ▲ 2023-02-10T02:59:49.353518Z ▲ 2023-02-10T02:59:49.353651Z ▲ λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps) 2023-02-10T02:59:49.35377Z ▲ ○ (Static) automatically rendered as static HTML (uses no initial props) 2023-02-10T02:59:49.353891Z ▲ 2023-02-10T02:59:49.354003Z ▲ 2023-02-10T02:59:50.030208Z ▲ Traced Next.js server files in: 544.676ms 2023-02-10T02:59:50.030615Z ▲ 2023-02-10T02:59:50.405327Z ▲ Created all serverless functions in: 374.691ms 2023-02-10T02:59:50.405674Z ▲ 2023-02-10T02:59:50.447226Z ▲ Collected static files (public/, static/, .next/static): 8.98ms 2023-02-10T02:59:50.447597Z ▲ 2023-02-10T02:59:50.899411Z ▲ Build Completed in .vercel/output [22s] 2023-02-10T02:59:50.899776Z ▲ 2023-02-10T02:59:50.959006Z ⚡️ 2023-02-10T02:59:50.96009Z ⚡️ 2023-02-10T02:59:50.960823Z ⚡️ Completed 'npx vercel build'. 2023-02-10T02:59:50.961014Z ⚡️ 2023-02-10T02:59:51.193188Z ⚡️ ERROR: Unknown functions manifest version. Expected 2 but found 1. 2023-02-10T02:59:51.193669Z ⚡️ Please report this at https://github.com/cloudflare/next-on-pages/issues. 2023-02-10T02:59:51.264517Z Failed: build command exited with code: 1 2023-02-10T02:59:52.148231Z Failed: an internal error occurred
npm fund
I fixed by upgrading next version
I did everything as mentioned in cloudflare's documentation. ERROR: Unknown functions manifest version. Expected 2 but found 1.
Here is the log: (I skipped few logs in the start)
023-02-10T02:59:35.898574Z ▲ 19 packages are looking for funding 2023-02-10T02:59:35.898781Z ▲ run
npm fund
for details 2023-02-10T02:59:35.899121Z ▲ 2023-02-10T02:59:35.899393Z ▲ 2023-02-10T02:59:35.923926Z ▲ Detected Next.js version: 12.2.0 2023-02-10T02:59:35.92425Z ▲ 2023-02-10T02:59:35.928365Z ▲ Running "npm run build" 2023-02-10T02:59:35.928666Z ▲ 2023-02-10T02:59:36.288186Z ▲ 2023-02-10T02:59:36.288517Z ▲ > demo-nextjs-wpgraphql-starter@0.1.0 build /opt/buildhome/repo 2023-02-10T02:59:36.288661Z ▲ > next build 2023-02-10T02:59:36.288794Z ▲ 2023-02-10T02:59:36.288905Z ▲ 2023-02-10T02:59:36.870277Z ▲ warn - You have defined experimental feature (runtime) in next.config.js that does not exist in this version of Next.js. 2023-02-10T02:59:36.870684Z ▲ 2023-02-10T02:59:36.870903Z ▲ warn - Please remove it from your configuration. 2023-02-10T02:59:36.871087Z ▲ 2023-02-10T02:59:36.871261Z ▲ 2023-02-10T02:59:36.914656Z ▲ Attention: Next.js now collects completely anonymous telemetry regarding usage. 2023-02-10T02:59:36.915001Z ▲ This information is used to shape Next.js' roadmap and prioritize features. 2023-02-10T02:59:36.915172Z ▲ 2023-02-10T02:59:36.915328Z ▲ You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: 2023-02-10T02:59:36.915758Z ▲ https://nextjs.org/telemetry 2023-02-10T02:59:36.916003Z ▲ 2023-02-10T02:59:36.916299Z ▲ 2023-02-10T02:59:37.045784Z ▲ info - Linting and checking validity of types... 2023-02-10T02:59:37.046457Z ▲ 2023-02-10T02:59:37.328378Z ▲ warn - No ESLint configuration detected. Run next lint to begin setup 2023-02-10T02:59:37.328871Z ▲ 2023-02-10T02:59:37.333892Z ▲ info - Creating an optimized production build... 2023-02-10T02:59:37.334122Z ▲ 2023-02-10T02:59:46.435479Z ▲ info - Compiled successfully 2023-02-10T02:59:46.435876Z ▲ 2023-02-10T02:59:46.436081Z ▲ info - Collecting page data... 2023-02-10T02:59:46.43629Z ▲ 2023-02-10T02:59:49.234838Z ▲ info - Generating static pages (0/3) 2023-02-10T02:59:49.235141Z ▲ 2023-02-10T02:59:49.29834Z ▲ info - Generating static pages (3/3) 2023-02-10T02:59:49.298628Z ▲ 2023-02-10T02:59:49.314561Z ▲ info - Finalizing page optimization... 2023-02-10T02:59:49.314983Z ▲ 2023-02-10T02:59:49.321373Z ▲ 2023-02-10T02:59:49.323928Z ▲ 2023-02-10T02:59:49.351199Z ▲ Page Size First Load JS 2023-02-10T02:59:49.351499Z ▲ ┌ λ / 9.88 kB 136 kB 2023-02-10T02:59:49.35167Z ▲ ├ /_app 0 B 124 kB 2023-02-10T02:59:49.351818Z ▲ ├ ○ /404 194 B 124 kB 2023-02-10T02:59:49.351948Z ▲ ├ λ /client/[...client] 1.51 kB 128 kB 2023-02-10T02:59:49.352063Z ▲ ├ ○ /login 3.29 kB 127 kB 2023-02-10T02:59:49.352183Z ▲ └ λ /post/[...postSlug] 1.4 kB 127 kB 2023-02-10T02:59:49.352337Z ▲ + First Load JS shared by all 124 kB 2023-02-10T02:59:49.352464Z ▲ ├ chunks/framework-4556c45dd113b893.js 45.2 kB 2023-02-10T02:59:49.352597Z ▲ ├ chunks/main-5b591ee92025a549.js 30.8 kB 2023-02-10T02:59:49.352734Z ▲ ├ chunks/pages/_app-a4c9e5e826d32a98.js 47.1 kB 2023-02-10T02:59:49.352856Z ▲ ├ chunks/webpack-5752944655d749a0.js 840 B 2023-02-10T02:59:49.352971Z ▲ └ css/21f8e083f97816c3.css 186 B 2023-02-10T02:59:49.353116Z ▲ 2023-02-10T02:59:49.35327Z ▲ ƒ Middleware 34 kB 2023-02-10T02:59:49.353404Z ▲ 2023-02-10T02:59:49.353518Z ▲ 2023-02-10T02:59:49.353651Z ▲ λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps) 2023-02-10T02:59:49.35377Z ▲ ○ (Static) automatically rendered as static HTML (uses no initial props) 2023-02-10T02:59:49.353891Z ▲ 2023-02-10T02:59:49.354003Z ▲ 2023-02-10T02:59:50.030208Z ▲ Traced Next.js server files in: 544.676ms 2023-02-10T02:59:50.030615Z ▲ 2023-02-10T02:59:50.405327Z ▲ Created all serverless functions in: 374.691ms 2023-02-10T02:59:50.405674Z ▲ 2023-02-10T02:59:50.447226Z ▲ Collected static files (public/, static/, .next/static): 8.98ms 2023-02-10T02:59:50.447597Z ▲ 2023-02-10T02:59:50.899411Z ▲ Build Completed in .vercel/output [22s] 2023-02-10T02:59:50.899776Z ▲ 2023-02-10T02:59:50.959006Z ⚡️ 2023-02-10T02:59:50.96009Z ⚡️ 2023-02-10T02:59:50.960823Z ⚡️ Completed 'npx vercel build'. 2023-02-10T02:59:50.961014Z ⚡️ 2023-02-10T02:59:51.193188Z ⚡️ ERROR: Unknown functions manifest version. Expected 2 but found 1. 2023-02-10T02:59:51.193669Z ⚡️ Please report this at https://github.com/cloudflare/next-on-pages/issues. 2023-02-10T02:59:51.264517Z Failed: build command exited with code: 1 2023-02-10T02:59:52.148231Z Failed: an internal error occurred