Build has been crashing since yesterday. It was working fine before. what could be the cause?
{
"name": "@example/minimal",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build && gulp",
"preview": "astro preview",
"astro": "astro",
"test": "vitest run"
},
"devDependencies": {
"@astrojs/sitemap": "^1.0.0",
"@astrojs/tailwind": "^4.0.0",
"@astrojs/vue": "^1.0.0",
"@types/intercom-web": "^2.8.18",
"@types/ua-parser-js": "^0.7.37",
"astro": "^2.6.0",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-minify": "^3.1.0",
"husky": "^8.0.3",
"prettier": "^2.7.1",
"prettier-plugin-astro": "^0.5.0",
"sass": "^1.54.4",
"vitest": "^0.23.4",
"vue": "^3.2.30"
},
"dependencies": {
"@astrojs/netlify": "^2.3.0",
"@astrojs/partytown": "^2.0.0",
"@headlessui/vue": "^1.6.7",
"@nanostores/vue": "^0.5.5",
"@splidejs/splide": "^4.1.4",
"@tailwindcss/custom-forms": "^0.2.1",
"@vueuse/components": "^9.1.1",
"@vueuse/core": "^9.1.1",
"astro-seo": "^0.6.0",
"astro-seo-schema": "^2.2.0",
"floating-vue": "^2.0.0-beta.19",
"js-base64": "^3.7.5",
"lazysizes": "^5.3.2",
"nanostores": "^0.6.0",
"swrv": "^1.0.0-beta.8",
"tailwindcss": "^3.3.2",
"ua-parser-js": "^1.0.36",
"vue-awesome-paginate": "^1.1.46",
"vue-exit-intent": "^2.0.0",
"vue-imask": "^6.4.2",
"vueperslides": "^3.5.1"
}
}
Logs
11:23:03 AM: @astrojs/sitemap: `sitemap-index.xml` is created.
11:23:03 AM: 05:53:03 AM [build] Server built in 8.80s
11:23:03 AM: 05:53:03 AM [build] Complete!
11:23:03 AM: [05:53:03] Using gulpfile /opt/build/repo/gulpfile.js
11:23:03 AM: [05:53:03] Starting "default"...
11:23:03 AM: [05:53:03] Starting "compressJs"...
11:23:03 AM: Compressing scripts in => ./dist/scripts/*.js
[05:53:03] Finished "compressJs" after 126 ms
11:23:03 AM: [05:53:03] Finished "default" after 127 ms
11:23:03 AM: Done in 10.26s.
11:23:03 AM: β
11:23:03 AM: (build.command completed in 10.5s)
11:23:03 AM: β
11:23:03 AM: Edge Functions bundling
11:23:03 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
11:23:03 AM: β
11:23:03 AM: Packaging Edge Functions from .netlify/edge-functions directory:
11:23:03 AM: - _empty-middleware
11:23:03 AM: - entry
11:23:03 AM: - renderers
11:23:04 AM: error: Uncaught (in promise) Error: Error: Could not find file: file:///opt/build/repo/.netlify/edge-functions/chunks/astro.f7dc36d4.mjs
11:23:04 AM: const ret = new Error(getStringFromWasm0(arg0, arg1));
11:23:04 AM: ^
11:23:04 AM: at __wbg_new_15d3966e9981a196 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm.generated.js:417:19)
11:23:04 AM: at <anonymous> (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm_bg.wasm:1:93412)
11:23:04 AM: at <anonymous> (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm_bg.wasm:1:1499594)
11:23:04 AM: at <anonymous> (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm_bg.wasm:1:1938165)
11:23:04 AM: at __wbg_adapter_40 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm.generated.js:231:6)
11:23:04 AM: at real (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm.generated.js:215:14)
11:23:04 AM: at eventLoopTick (ext:core/01_core.js:183:11)
11:23:04 AM: β
11:23:04 AM: Bundling of edge function failed
11:23:04 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
11:23:04 AM: β
11:23:04 AM: Error message
11:23:04 AM: Command failed with exit code 1: deno run --allow-all --no-config --import-map=/opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/import_map.json --quiet /opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/bundle.ts {"basePath":"/opt/build/repo","destPath":"/tmp/edge-65263815c09e630527d3ddbc/86281f9f-c4c9-49a5-a8d3-710b7566d6c2.eszip","externals":[],"functions":[{"name":"_empty-middleware","path":"/opt/build/repo/.netlify/edge-functions/_empty-middleware.mjs"},{"name":"entry","path":"/opt/build/repo/.netlify/edge-functions/entry.js"},{"name":"renderers","path":"/opt/build/repo/.netlify/edge-functions/renderers.mjs"}],"importMapData":"{\"imports\":{\"@netlify/edge-functions\":\"https://edge.netlify.com/v1/index.ts\",\"netlify:edge\":\"https://edge.netlify.com/v1/index.ts?v=legacy\"},\"scopes\":{}}"} (https://ntl.fyi/exit-code-1)
11:23:04 AM: error: Uncaught (in promise) Error: Error: Could not find file: file:///opt/build/repo/.netlify/edge-functions/chunks/astro.f7dc36d4.mjs
11:23:04 AM: const ret = new Error(getStringFromWasm0(arg0, arg1));
11:23:04 AM: ^
11:23:04 AM: at __wbg_new_15d3966e9981a196 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm.generated.js:417:19)
11:23:04 AM: at <anonymous> (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm_bg.wasm:1:93412)
11:23:04 AM: at <anonymous> (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm_bg.wasm:1:1499594)
11:23:04 AM: at <anonymous> (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm_bg.wasm:1:1938165)
11:23:04 AM: at __wbg_adapter_40 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm.generated.js:231:6)
11:23:04 AM: at real (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/eszip@v0.40.0/eszip_wasm.generated.js:215:14)
11:23:04 AM: at eventLoopTick (ext:core/01_core.js:183:11)
11:23:04 AM: β
11:23:04 AM: Error location
11:23:04 AM: While bundling edge function
11:23:04 AM: β
11:23:04 AM: Resolved config
11:23:04 AM: build:
11:23:04 AM: command: yarn build
11:23:04 AM: commandOrigin: ui
11:23:04 AM: environment:
11:23:04 AM: - DEPRECATED
11:23:04 AM: - NETLIFY_USE_YARN
11:23:04 AM: - PUBLIC_API_BASE_URL
11:23:04 AM: - PUBLIC_APP_URL
11:23:04 AM: - PUBLIC_CDN_BASE_URL
11:23:04 AM: - PUBLIC_GTM_ID
11:23:04 AM: - PUBLIC_IMAGE_CDN_BASE_KEY_PATH
11:23:04 AM: - PUBLIC_IMAGE_CDN_BUCKET
11:23:04 AM: - PUBLIC_IMAGE_CDN_URL
11:23:04 AM: - PUBLIC_OPEN_GRAPH_BASE_URL
11:23:04 AM: publish: /opt/build/repo/dist
11:23:04 AM: publishOrigin: ui
11:23:04 AM: headers:
11:23:04 AM: - for: "*"
11:23:04 AM: values:
11:23:04 AM: Content-Security-Policy: frame-ancestors "none";
11:23:04 AM: Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
11:23:04 AM: X-Content-Type-Options: nosniff
11:23:04 AM: X-Frame-Options: DENY
11:23:04 AM: X-XSS-Protection: 1; mode=block
11:23:04 AM: headersOrigin: config
11:23:04 AM: redirects:
11:23:04 AM: - force: true
11:23:13 AM: Failed during stage "building site": Build script returned non-zero exit code: 2
11:23:13 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:23:13 AM: Failing build: Failed to build site
11:23:13 AM: Finished processing build request in 51.108s