Skip to content

Unable to build on Vercel and local #117

@SunsetMkt

Description

@SunsetMkt

Build log:

x Build failed in 13.38s
error during build:
[vite-plugin-pwa:sveltekit:build] The 'swSrc' file can't be read. ENOENT: no such file or directory, open '/vercel/path0/.svelte-kit/output/client/service-worker.js'
    at injectManifest (/vercel/path0/node_modules/workbox-build/build/inject-manifest.js:70:15)
    at async Object.handler (file:///vercel/path0/node_modules/@vite-pwa/sveltekit/dist/index.mjs:225:33)
    at async PluginDriver.hookParallel (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:20711:17)
    at async file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:21674:13
    at async catchUnfinishedHookActions (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:21135:16)
    at async rollupInternal (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:21661:5)
    at async buildEnvironment (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-yUJfKD1i.js:50584:14)
    at async Object.defaultBuildApp [as buildApp] (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-yUJfKD1i.js:51021:5)
    at async CAC.<anonymous> (file:///vercel/path0/node_modules/vite/dist/node/cli.js:852:7)
Error: Command "npm run build" exited with 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions