CI only error: no such file or directory server-functions-manifest.json
I am getting a no such file or directory error while vinxi build is running for the server-functions-manifest.json. It only happens in ci, in both vercel and cloudflare pages. With start 1.0.10 & vinxi 0.4.3. Just in case somebody saw this one before, has a clue what I could be doing wrong. I saw some messages previously with this error, but only when the build output folder is changed. Which I did not, however by start app is inside a mono repo. Full project is available here. Its a bit messy atm: https://github.com/hkviz/hkviz-web/tree/move-to-solid-start/packages/app2
logged error of vinxi build in thread
1 Reply
packages/app2 build$ vinxi build --preset vercel-edge
packages/app2 build: vinxi v0.4.3
packages/app2 build: The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
packages/app2 build: ⚙ Building your app...
packages/app2 build: vinxi v0.4.3
packages/app2 build: The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
packages/app2 build: ⚙ Building your router ssr...
packages/app2 build: 📦 Compiling ssr router...
packages/app2 build: vinxi building router ssr in http mode
packages/app2 build: vite v5.4.11 building SSR bundle for production...
packages/app2 build: transforming...
packages/app2 build: [BABEL] Note: The code generator has deoptimised the styling of /vercel/path0/packages/hk-data/dist/index.js as it exceeds the max of 500KB.
packages/app2 build: Browserslist: caniuse-lite is outdated. Please run:
packages/app2 build: npx update-browserslist-db@latest
packages/app2 build: Why you should do it regularly: https://github.com/browserslist/update-db#readme
packages/app2 build: munmap_chunk(): invalid pointer
packages/app2 build: vinxi v0.4.3
packages/app2 build: The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
packages/app2 build: ⚙ Building your router client...
packages/app2 build: 📦 Compiling client router...
packages/app2 build: vinxi building router client in client mode
packages/app2 build: [BABEL] Note: The code generator has deoptimised the styling of /vercel/path0/packages/hk-data/dist/index.js as it exceeds the max of 500KB.
packages/app2 build: Browserslist: caniuse-lite is outdated. Please run:
packages/app2 build: npx update-browserslist-db@latest
packages/app2 build: Why you should do it regularly: https://github.com/browserslist/update-db#readme
packages/app2 build: munmap_chunk(): invalid pointer
packages/app2 build: vinxi v0.4.3
packages/app2 build: The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
packages/app2 build: ⚙ Building your router server-fns...
packages/app2 build: :package: Compiling server-fns router...
packages/app2 build$ vinxi build --preset vercel-edge
packages/app2 build: vinxi v0.4.3
packages/app2 build: The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
packages/app2 build: ⚙ Building your app...
packages/app2 build: vinxi v0.4.3
packages/app2 build: The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
packages/app2 build: ⚙ Building your router ssr...
packages/app2 build: 📦 Compiling ssr router...
packages/app2 build: vinxi building router ssr in http mode
packages/app2 build: vite v5.4.11 building SSR bundle for production...
packages/app2 build: transforming...
packages/app2 build: [BABEL] Note: The code generator has deoptimised the styling of /vercel/path0/packages/hk-data/dist/index.js as it exceeds the max of 500KB.
packages/app2 build: Browserslist: caniuse-lite is outdated. Please run:
packages/app2 build: npx update-browserslist-db@latest
packages/app2 build: Why you should do it regularly: https://github.com/browserslist/update-db#readme
packages/app2 build: munmap_chunk(): invalid pointer
packages/app2 build: vinxi v0.4.3
packages/app2 build: The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
packages/app2 build: ⚙ Building your router client...
packages/app2 build: 📦 Compiling client router...
packages/app2 build: vinxi building router client in client mode
packages/app2 build: [BABEL] Note: The code generator has deoptimised the styling of /vercel/path0/packages/hk-data/dist/index.js as it exceeds the max of 500KB.
packages/app2 build: Browserslist: caniuse-lite is outdated. Please run:
packages/app2 build: npx update-browserslist-db@latest
packages/app2 build: Why you should do it regularly: https://github.com/browserslist/update-db#readme
packages/app2 build: munmap_chunk(): invalid pointer
packages/app2 build: vinxi v0.4.3
packages/app2 build: The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
packages/app2 build: ⚙ Building your router server-fns...
packages/app2 build: :package: Compiling server-fns router...
packages/app2 build: vinxi building router server-fns in http mode
packages/app2 build: [error] ENOENT: no such file or directory, open '/vercel/path0/packages/app2/.vinxi/build/client/_build/server-functions-manifest.json'
packages/app2 build: at readFileSync (node:fs:448:20)
packages/app2 build: at config (/vercel/path0/node_modules/.pnpm/@[email protected][email protected]/node_modules/@vinxi/server-functions/server.js:49:5)
packages/app2 build: at runConfigHook (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66720:25)
packages/app2 build: at async resolveConfig (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66169:12)
packages/app2 build: at async Module.build (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:65237:18)
packages/app2 build: at async createViteBuild (/vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/lib/build.js:381:17)
packages/app2 build: at async createRouterBuild (/vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/lib/build.js:506:2)
packages/app2 build: at async /vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/lib/build.js:51:5
packages/app2 build: at async createBuild (/vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/lib/build.js:50:4)
packages/app2 build: at async Object.run (/vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/bin/cli.mjs:235:5)
packages/app2 build: [error] ENOENT: no such file or directory, open '/vercel/path0/packages/app2/.vinxi/build/client/_build/server-functions-manifest.json'
packages/app2 build: [error] Exited with code: 1
packages/app2 build: at CommandChild.pipedStdoutBuffer (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/dax-sh/esm/mod.js:9392:19)
packages/app2 build: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
packages/app2 build: [error] Exited with code: 1
packages/app2 build: Failed
/vercel/path0/packages/app2:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @hkviz/app2@ build: `vinxi build --preset vercel-edge`
Exit status 1
ELIFECYCLE Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1
packages/app2 build: vinxi building router server-fns in http mode
packages/app2 build: [error] ENOENT: no such file or directory, open '/vercel/path0/packages/app2/.vinxi/build/client/_build/server-functions-manifest.json'
packages/app2 build: at readFileSync (node:fs:448:20)
packages/app2 build: at config (/vercel/path0/node_modules/.pnpm/@[email protected][email protected]/node_modules/@vinxi/server-functions/server.js:49:5)
packages/app2 build: at runConfigHook (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66720:25)
packages/app2 build: at async resolveConfig (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66169:12)
packages/app2 build: at async Module.build (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:65237:18)
packages/app2 build: at async createViteBuild (/vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/lib/build.js:381:17)
packages/app2 build: at async createRouterBuild (/vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/lib/build.js:506:2)
packages/app2 build: at async /vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/lib/build.js:51:5
packages/app2 build: at async createBuild (/vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/lib/build.js:50:4)
packages/app2 build: at async Object.run (/vercel/path0/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/vinxi/bin/cli.mjs:235:5)
packages/app2 build: [error] ENOENT: no such file or directory, open '/vercel/path0/packages/app2/.vinxi/build/client/_build/server-functions-manifest.json'
packages/app2 build: [error] Exited with code: 1
packages/app2 build: at CommandChild.pipedStdoutBuffer (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/dax-sh/esm/mod.js:9392:19)
packages/app2 build: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
packages/app2 build: [error] Exited with code: 1
packages/app2 build: Failed
/vercel/path0/packages/app2:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @hkviz/app2@ build: `vinxi build --preset vercel-edge`
Exit status 1
ELIFECYCLE Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1