thgh / vercel-sapper

Vercel builder for Sapper with SSR enabled
MIT License
189 stars 25 forks source link

Builder version error when deploying #69

Open adamduncan opened 2 years ago

adamduncan commented 2 years ago

Hi, I'm not sure if this project is still tenable/maintained, but have just come back to an old codebase that previously used now-sapper and trying to get it redeploying to Vercel.

When running vercel we're getting:

Error! Unsupported Builder version `undefined` from "vercel-sapper"
Error: Command "vercel build" exited with 1

Is this a known issue, or are there any potential workarounds? Thanks


For context:

Our package.json has a build command:

    "build": "sapper build --legacy",

vercel.json we've tried the legacy builds with and without config.build: false:

{
  "version": 2,
  "builds": [
    {
      "src": "package.json",
      "use": "vercel-sapper",
      "config": {
        "build": false
      }
    }
  ]
}

And .vercelignore includes __sapper__ directory:

/__sapper__
/cypress
!node_modules
/node_modules/*
flyingelephant-web commented 2 years ago

I am facing the same issue. @adamduncan did you find any alternative? Appreciate any help.

adamduncan commented 2 years ago

@flyingelephant-web Couldn't resolve issues in Vercel. We ended up doing an export with sapper export --legacy, and then manually deploying the built app (__sapper__/export) to Netlify. Hope that helps

flyingelephant-web commented 2 years ago

Thanks, @adamduncan. Did the same and deployed to vercel.

janzheng commented 2 years ago

Does doing sapper export --legacy still run it with the server, or is that only a static site?

I was building a Sapper project fine and then an hour later started getting these problems.

adamduncan commented 2 years ago

Does doing sapper export --legacy still run it with the server, or is that only a static site?

@janzheng Just static with the runtime client JS

swarnava commented 2 years ago

@adamduncan Please reach out to support@vercel.com with your deployment URL. We have disabled vercel builder for @janzheng and we would love to take a closer look for your deployment. Thanks!