You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The update is only in the CSV sheets read by the Svelte application.
I am deploying it to Vercel.
I have to use npm install --legacy-peer-deps as the install command on Vercel otherwise installation of @sveltejs/adapter-vercel fails.
Also, my project was using Node 16.x, so I "updated" it to use Node 18.x as the runtime on Vercel.
Now I am getting the following build errors, which I do not understand (full logs attached):
[21:43:18.749] �[31merror during build:
[21:43:18.749] TypeError: builder.findServerAssets is not a function or its return value is not iterable
[21:43:18.749] at generate_serverless_function (file:///vercel/path0/node_modules/@sveltejs/adapter-vercel/index.js:95:33)
[21:43:18.750] at async Object.adapt (file:///vercel/path0/node_modules/@sveltejs/adapter-vercel/index.js:310:5)
[21:43:18.750] at async adapt (file:///vercel/path0/node_modules/@sveltejs/kit/src/core/adapt/index.js:37:2)
[21:43:18.750] at async finalise (file:///vercel/path0/node_modules/@sveltejs/kit/src/exports/vite/index.js:810:7)
[21:43:18.750] at async Object.handler (file:///vercel/path0/node_modules/@sveltejs/kit/src/exports/vite/index.js:840:5)
[21:43:18.750] at async PluginDriver.hookParallel (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:25466:17)
[21:43:18.750] at async Object.close (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:26726:13)
[21:43:18.750] at async build (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-b2890f90.js:48095:13)
[21:43:18.751] at async CAC.<anonymous> (file:///vercel/path0/node_modules/vite/dist/node/cli.js:842:9)�[39m
[21:43:18.784] Error: Command "npm run build --legacy-peer-deps" exited with 1
[21:43:19.358]
I found this GitHub issue which is relevant: #12564 ... but I am using "svelte": "^3.54.0" so I'm not sure what action to take.
I would very much appreciate ideas on what to do next.
Full error logs:
[21:42:56.695] Running build in Washington, D.C., USA (East) – iad1
[21:42:56.875] Cloning github.com/bzm3r/npch (Branch: main, Commit: 747f3c7)
[21:42:57.426] Previous build cache not available
[21:42:57.602] Cloning completed: 726.678ms
[21:42:57.906] Running "vercel build"
[21:42:58.435] Vercel CLI 37.12.0
[21:42:59.188] Running "install" command: `npm install --legacy-peer-deps`...
[21:43:03.903]
[21:43:03.904] added 147 packages, and audited 148 packages in 4s
[21:43:03.905]
[21:43:03.905] 29 packages are looking for funding
[21:43:03.905] run `npm fund` for details
[21:43:03.913]
[21:43:03.914] 3 vulnerabilities (2 low, 1 moderate)
[21:43:03.914]
[21:43:03.914] To address all issues (including breaking changes), run:
[21:43:03.916] npm audit fix --force
[21:43:03.916]
[21:43:03.916] Run `npm audit` for details.
[21:43:05.911]
[21:43:05.912] > [email protected] build
[21:43:05.912] > vite build
[21:43:05.912]
[21:43:06.716]
[21:43:06.717] �[36mvite v4.5.5 �[32mbuilding SSR bundle for production...�[36m�[39m
[21:43:06.747] transforming...
[21:43:07.767] �[32m✓�[39m 81 modules transformed.
[21:43:07.865] rendering chunks...
[21:43:08.088]
[21:43:08.089] �[36mvite v4.5.5 �[32mbuilding for production...�[36m�[39m
[21:43:08.095] transforming...
[21:43:11.175] �[32m✓�[39m 271 modules transformed.
[21:43:11.422] rendering chunks...
[21:43:11.591] computing gzip size...
[21:43:11.611] �[2m.svelte-kit/output/client/�[22m�[32m_app/version.json �[39m�[1m�[2m 0.03 kB�[22m�[1m�[22m�[2m │ gzip: 0.05 kB�[22m
[21:43:11.611] �[2m.svelte-kit/output/client/�[22m�[32m.vite/manifest.json �[39m�[1m�[2m 2.24 kB�[22m�[1m�[22m�[2m │ gzip: 0.43 kB�[22m
[21:43:11.614] �[2m.svelte-kit/output/client/�[22m�[35m_app/immutable/assets/2.8cbe000d.css �[39m�[1m�[2m 3.93 kB�[22m�[1m�[22m�[2m │ gzip: 1.34 kB�[22m
[21:43:11.614] �[2m.svelte-kit/output/client/�[22m�[36m_app/immutable/chunks/index.dbc9a461.js �[39m�[1m�[2m 0.45 kB�[22m�[1m�[22m�[2m │ gzip: 0.31 kB�[22m
[21:43:11.614] �[2m.svelte-kit/output/client/�[22m�[36m_app/immutable/nodes/0.f192624c.js �[39m�[1m�[2m 0.55 kB�[22m�[1m�[22m�[2m │ gzip: 0.37 kB�[22m
[21:43:11.614] �[2m.svelte-kit/output/client/�[22m�[36m_app/immutable/nodes/1.e895ae0e.js �[39m�[1m�[2m 0.98 kB�[22m�[1m�[22m�[2m │ gzip: 0.57 kB�[22m
[21:43:11.615] �[2m.svelte-kit/output/client/�[22m�[36m_app/immutable/chunks/singletons.ba5521ef.js �[39m�[1m�[2m 2.46 kB�[22m�[1m�[22m�[2m │ gzip: 1.27 kB�[22m
[21:43:11.615] �[2m.svelte-kit/output/client/�[22m�[36m_app/immutable/entry/app.c3abd920.js �[39m�[1m�[2m 5.74 kB�[22m�[1m�[22m�[2m │ gzip: 2.29 kB�[22m
[21:43:11.615] �[2m.svelte-kit/output/client/�[22m�[36m_app/immutable/chunks/index.62610ab9.js �[39m�[1m�[2m 8.58 kB�[22m�[1m�[22m�[2m │ gzip: 3.45 kB�[22m
[21:43:11.615] �[2m.svelte-kit/output/client/�[22m�[36m_app/immutable/entry/start.e5551165.js �[39m�[1m�[2m 25.31 kB�[22m�[1m�[22m�[2m │ gzip: 9.98 kB�[22m
[21:43:11.616] �[2m.svelte-kit/output/client/�[22m�[36m_app/immutable/nodes/2.b2918e26.js �[39m�[1m�[2m481.06 kB�[22m�[1m�[22m�[2m │ gzip: 194.97 kB�[22m
[21:43:11.616] �[32m✓ built in 3.52s�[39m
[21:43:11.793] �[2m.svelte-kit/output/server/�[22m�[32m.vite/manifest.json �[39m�[1m�[2m 1.62 kB�[22m�[1m�[22m
[21:43:11.793] �[2m.svelte-kit/output/server/�[22m�[35m_app/immutable/assets/_page.8cbe000d.css �[39m�[1m�[2m 3.93 kB�[22m�[1m�[22m
[21:43:11.794] �[2m.svelte-kit/output/server/�[22m�[36minternal.js �[39m�[1m�[2m 0.19 kB�[22m�[1m�[22m
[21:43:11.794] �[2m.svelte-kit/output/server/�[22m�[36mentries/fallbacks/layout.svelte.js �[39m�[1m�[2m 0.24 kB�[22m�[1m�[22m
[21:43:11.794] �[2m.svelte-kit/output/server/�[22m�[36mentries/fallbacks/error.svelte.js �[39m�[1m�[2m 0.89 kB�[22m�[1m�[22m
[21:43:11.794] �[2m.svelte-kit/output/server/�[22m�[36mchunks/index.js �[39m�[1m�[2m 1.33 kB�[22m�[1m�[22m
[21:43:11.794] �[2m.svelte-kit/output/server/�[22m�[36mchunks/index2.js �[39m�[1m�[2m 4.50 kB�[22m�[1m�[22m
[21:43:11.794] �[2m.svelte-kit/output/server/�[22m�[36mchunks/internal.js �[39m�[1m�[2m 5.45 kB�[22m�[1m�[22m
[21:43:11.794] �[2m.svelte-kit/output/server/�[22m�[36mentries/pages/_page.svelte.js �[39m�[1m�[2m44.74 kB�[22m�[1m�[22m
[21:43:11.794] �[2m.svelte-kit/output/server/�[22m�[36mindex.js �[39m�[1m�[2m91.91 kB�[22m�[1m�[22m
[21:43:11.797]
[21:43:11.797] Run npm run preview to preview your production build locally.
[21:43:11.800]
[21:43:11.800] > Using @sveltejs/adapter-auto
[21:43:11.968] Installing @sveltejs/adapter-vercel...
[21:43:16.262] npm warn deprecated [email protected]: This package is no longer supported.
[21:43:16.273] npm warn deprecated [email protected]: This package is no longer supported.
[21:43:16.445] npm warn deprecated [email protected]: This package is no longer supported.
[21:43:16.816]
[21:43:16.816] added 60 packages, and audited 208 packages in 5s
[21:43:16.817]
[21:43:16.817] 32 packages are looking for funding
[21:43:16.817] run `npm fund` for details
[21:43:16.832]
[21:43:16.833] 3 vulnerabilities (2 low, 1 moderate)
[21:43:16.833]
[21:43:16.833] To address all issues (including breaking changes), run:
[21:43:16.833] npm audit fix --force
[21:43:16.833]
[21:43:16.834] Run `npm audit` for details.
[21:43:16.945] Successfully installed @sveltejs/adapter-vercel.
[21:43:16.946]
[21:43:16.946] If you plan on staying on this deployment platform, consider replacing @sveltejs/adapter-auto with @sveltejs/adapter-vercel. This will give you faster and more robust installs, and more control over deployment configuration.
[21:43:16.946]
[21:43:18.749] �[31merror during build:
[21:43:18.749] TypeError: builder.findServerAssets is not a function or its return value is not iterable
[21:43:18.749] at generate_serverless_function (file:///vercel/path0/node_modules/@sveltejs/adapter-vercel/index.js:95:33)
[21:43:18.750] at async Object.adapt (file:///vercel/path0/node_modules/@sveltejs/adapter-vercel/index.js:310:5)
[21:43:18.750] at async adapt (file:///vercel/path0/node_modules/@sveltejs/kit/src/core/adapt/index.js:37:2)
[21:43:18.750] at async finalise (file:///vercel/path0/node_modules/@sveltejs/kit/src/exports/vite/index.js:810:7)
[21:43:18.750] at async Object.handler (file:///vercel/path0/node_modules/@sveltejs/kit/src/exports/vite/index.js:840:5)
[21:43:18.750] at async PluginDriver.hookParallel (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:25466:17)
[21:43:18.750] at async Object.close (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:26726:13)
[21:43:18.750] at async build (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-b2890f90.js:48095:13)
[21:43:18.751] at async CAC.<anonymous> (file:///vercel/path0/node_modules/vite/dist/node/cli.js:842:9)�[39m
[21:43:18.784] Error: Command "npm run build --legacy-peer-deps" exited with 1
[21:43:19.358]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an old Svelte 3 application, which I want to make a tiny update to: https://github.com/bzm3r/npch
The update is only in the CSV sheets read by the Svelte application.
I am deploying it to Vercel.
I have to use
npm install --legacy-peer-deps
as the install command on Vercel otherwise installation of@sveltejs/adapter-vercel
fails.Also, my project was using Node 16.x, so I "updated" it to use Node 18.x as the runtime on Vercel.
Now I am getting the following build errors, which I do not understand (full logs attached):
I found this GitHub issue which is relevant: #12564 ... but I am using
"svelte": "^3.54.0"
so I'm not sure what action to take.I would very much appreciate ideas on what to do next.
Full error logs:
Beta Was this translation helpful? Give feedback.
All reactions