vercel-builder icon indicating copy to clipboard operation
vercel-builder copied to clipboard

Getting "Error! Invalid JSON" when using GH Actions.

Open HillReywer opened this issue 3 years ago • 2 comments

Hello,

Can you tell me what may be the problem, trying to run a site using vercel and Nuxt, I added Vercel.json to the root of the repository and I get the following error when I run the action.

I took the json from the sample on the site.

Vercel CLI 28.1.3
Retrieving project…
Deploying hillreywer/*** 
Error! Invalid JSON
Error: Process completed with exit code 1.
{
  "version": 2,
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/vercel-builder"
    }
  ]
}

HillReywer avatar Aug 24 '22 14:08 HillReywer

Are you sure that's the content of the file? No stray comma? How about your tsconfig.json?

danielroe avatar Aug 24 '22 15:08 danielroe

Yes, I've tried it in several ways.

Hmm, we don't have tsconfig.json in the project.

HillReywer avatar Aug 24 '22 16:08 HillReywer