nuxt / vercel-builder

Vercel Builder for Nuxt
MIT License
645 stars 75 forks source link

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

Open HillReywer opened 2 years ago

HillReywer commented 2 years ago

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"
    }
  ]
}
danielroe commented 2 years ago

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

HillReywer commented 2 years ago

Yes, I've tried it in several ways.

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