thgh / vercel-sapper

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

Error! The property `builds` is not allowed in vercel.json – please remove it. #35

Closed adnansmajlovic closed 4 years ago

adnansmajlovic commented 4 years ago

Not sure if they added this just recently, but bulds property can't be part of the vercel.json:

https://vercel.com/docs/configuration?query=builds#project/builds

NOTE: The builds property has been deprecated in favor of functions. In the majority of cases, you are no longer required to specify a build, instead relying on the build step.

thgh commented 4 years ago

Hmm, that could be the end of this project. Did you find any way around it?

thgh commented 4 years ago

Even though I'm using vercel.json I get this warning (and the deploy works)

Due to `builds` existing in your `now.json` file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-project-settings

antony commented 4 years ago

still working for me too. builds has been deprecated for a while.

adnansmajlovic commented 4 years ago

Hm... Doesn't work for me, however it worked when I used "now" instead of "vercel", and it worked with "vercel" on an older project. Also, haven't found a work around yet.

This is what I get with v 19.0.1:

$ vercel
Vercel CLI 19.0.1
Error! The property `builds` is not allowed in vercel.json – please remove it.

vercel.json:

{
  "version": 2,
  "builds": [
        {
            "src": "package.json",
            "use": "now-sapper"
        }
    ],
  "env": {
    "SECRET": "@my-secret-name"
  },
  "functions": {
    "api/test.js": {
      "memory": 1024,
      "maxDuration": 10
    }
  }
}

(edit) Reported it to Vercel team, and waiting for a response

thgh commented 4 years ago

Looks like you can't mix builds and functions.

adnansmajlovic commented 4 years ago

Yes, thank you Thomas. That was an issue!

Ashique20 commented 1 year ago

WARN! Due to builds existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings

I got this problem to how should i fix it

antony commented 1 year ago

@Ashique20 I'm assuming that this isn't a new project, what changed between when it worked and now?

Ashique20 commented 1 year ago

Can we have chat on google meet?

শনি, ৪ মার্চ, ২০২৩ তারিখে ৩:০৩ AM টায় তারিখে Antony Jones < @.***> লিখেছেন:

@Ashique20 https://github.com/Ashique20 I'm assuming that this isn't a new project, what changed between when it worked and now?

— Reply to this email directly, view it on GitHub https://github.com/thgh/vercel-sapper/issues/35#issuecomment-1454126560, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXDGIS2G4U7RNKHG4BGYTPLW2JMDPANCNFSM4NO3AMBA . You are receiving this because you were mentioned.Message ID: @.***>

Ashique20 commented 1 year ago

Man i really need to solve it and i am totally helpless

শনি, ৪ মার্চ, ২০২৩ তারিখে ১০:৫১ PM টায় তারিখে Ashiqur Rahman Student < @.***> লিখেছেন:

Can we have chat on google meet?

শনি, ৪ মার্চ, ২০২৩ তারিখে ৩:০৩ AM টায় তারিখে Antony Jones < @.***> লিখেছেন:

@Ashique20 https://github.com/Ashique20 I'm assuming that this isn't a new project, what changed between when it worked and now?

— Reply to this email directly, view it on GitHub https://github.com/thgh/vercel-sapper/issues/35#issuecomment-1454126560, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXDGIS2G4U7RNKHG4BGYTPLW2JMDPANCNFSM4NO3AMBA . You are receiving this because you were mentioned.Message ID: @.***>