1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Firebaseデプロイ時にエラーが発生した時の対処法

Last updated at Posted at 2021-03-19

はじめに

対象者

  • Firebaseホスティングを使用してデプロイを試みたが、以下のエラーによって失敗した方

    HTTP Error: 404, Requested entity was not found.  
    

スクリーンショット 2021-03-20 7.49.00.png

試したこと-失敗①

firebase-toolsの最新化

以下のリンクを参考してfirebase-toolsを最新化しましたが、僕はなぜか解決できませんでした。

 npm install -g firebase-tools

【Firebase】deployがうまくいかない時の対処方法

試したこと-失敗②

.firebaseファイルの削除、再度初期化してデプロイ

firebaseはdeployを行うと、プロジェクト配下に .firebaseというディレクトリを掘り、cache情報を残します。そのため、このcache情報が邪魔してデプロイできないと推測し、.firebaseファイルを削除。再度初期化とデプロイを行いましたが、やはり失敗しました。

試したこと-成功

firebase.jsonにsiteを追加し、対象のプロジェクト(アプリ)の名前を記載

  • firebase.jsonに"site"を追加
  • 対象のプロジェクトの名前を記載
  • 再度デプロイ

スクリーンショット 2021-03-20 8.18.05.png

スクリーンショット 2021-03-20 8.23.15.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?