简体   繁体   中英

Unexpected error when deploying webapp on firebase

I try to host my static Website on Firebase. I run through the tutorial on the official Firebase site.

I tried to deploy it, changed the firebase.json file, but nothing helped

"hosting": {
  "public": "public", 
  "ignore": [
    "firebase.json",
  ]
}

this is my firebase.json file

this is the error message when I run firebase deploy:

mp@linux:~/Documents/Website/Codebytessoftware$ firebase deploy

Error: There was an error loading firebase.json:

Unexpected token ':' at 1:10
"hosting": {
         ^
File: "/home/mp/Documents/Website/Codebytessoftware/firebase.json"

Having trouble? Try firebase deploy --help

Your firebase.json is not a valid json file. Try this:

{
  "hosting": {
    "public": "public", 
    "ignore": [
      "firebase.json"
    ]
  }
}

You can check if your json file is valid json in here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM