question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

adapter-vercel seems to be broken at @sveltejs/kit@1.0.0-next.292

See original GitHub issue

Describe the bug

Vercel builds seem to be broken by #4192 since adapter-vercel still uses builder.prerender.

Reproduction

StackBlitz link

Run npm run build to see error.

Logs

At the end of build...

> Using @sveltejs/adapter-vercel
> builder.prerender() has been removed. Prerendering now takes place in the build phase — see builder.prerender and builder.writePrerendered
    at Object.prerender (file:///home/projects/sveltejs-kit-template-default-ansvrj/node_modules/@sveltejs/kit/dist/chunks/index4.js:183:10)
    at adapt (file:///home/projects/sveltejs-kit-template-default-ansvrj/node_modules/@sveltejs/adapter-vercel/index.js:116:38)
    at adapt (file:///home/projects/sveltejs-kit-template-default-ansvrj/node_modules/@sveltejs/kit/dist/chunks/index4.js:202:8)
    at eval (file:///home/projects/sveltejs-kit-template-default-ansvrj/node_modules/@sveltejs/kit/dist/cli.js:956:11)

System Info

Default node.new/sveltekit env. Left the command above running for ~5min and got no response.

Severity

blocking an upgrade

Additional Information

Blocks upgrade to @sveltejs/kit@1.0.0-next.292

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:19
  • Comments:23 (7 by maintainers)

github_iconTop GitHub Comments

22reactions
faisalramdan17commented, Mar 6, 2022

The solution from me turns back or use the previous version that 1.0.0-next.288 or 1.0.0-next.291 . you can try :

  1. Change "@sveltejs/kit": "next", to be "@sveltejs/kit": "1.0.0-next.291", at package.json.
  2. Remove "prepare": "svelte-kit sync" at package.json (if any there).
  3. Run npm install
  4. After that commit & push your repo
  5. Enjoy guys!

Thanks

8reactions
Travjacommented, Mar 5, 2022

Just going to note that this appears to impact more than just vercel. I’m attempting to build with the static-adapter and running into the same error message.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found