Error during build:

was ok but then start give this error: i already delete from pages and add again and this error remain... any ideias what im doing wrong ? domain: shared-visions.pages.dev Using @sveltejs/adapter-auto 20:58:42.726 error during build: 20:58:42.727 TypeError: builder.hasServerInstrumentationFile is not a function 20:58:42.727 at Object.adapt (file:///opt/buildhome/repo/node_modules/@sveltejs/adapter-cloudflare/index.js:116:16) 20:58:42.727 at Object.adapt (file:///opt/buildhome/repo/node_modules/@sveltejs/adapter-auto/index.js:133:19) 20:58:42.727 at adapt (file:///opt/buildhome/repo/node_modules/@sveltejs/adapter-auto/index.js:144:31) 20:58:42.727 at async adapt (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/src/core/adapt/index.js:38:2) 20:58:42.727 at async finalise (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/src/exports/vite/index.js:1210:7) 20:58:42.728 at async Object.handler (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/src/exports/vite/index.js:1240:5) 20:58:42.728 at async PluginDriver.hookParallel (file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/node-entry.js:22255:17) 20:58:42.728 at async Object.close (file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/node-entry.js:23271:13) 20:58:42.728 at async buildEnvironment (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-CMEinpL-.js:34280:15) 20:58:42.728 at async Object.build (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-CMEinpL-.js:34636:19) 20:58:42.786 Failed: Error while executing user command. Exited with error code: 1 20:58:42.797 Failed: build command exited with code: 1 20:58:43.906 Failed: error occurred while running build command
1 Reply
Jorge Oliveira
Jorge OliveiraOP•7d ago
complete stuck... cannot deploy any sveltekit i have on cloudflare pages ... 😯 find solution from web cloudflare community: [quote="vwdsm14, post:4, topic:827706"]
npx npm-check-updates -u
npm install
npx npm-check-updates -u
npm install
[/quote] thks ... you are right... i change build command to : "npx npm-check-updates -u && npm install && npm run build" and works ok... too mutch thks!

Did you find this page helpful?