angular / angular/angularfire

@angular/build: TS2307: Cannot find module 'firebase/compat'

オープン
#3,677 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
7.8k
フォーク
2.2k
平均マージ
22時間 28分
マージ済み PR(30日)
6

説明

I currently have an Angular 20 application with storage.
I tried to migrate to the new builder system and after running the migration script I get:

>
X [ERROR] TS2307: Cannot find module 'firebase/compat' or its corresponding type declarations. [plugin angular-compiler]

node_modules/.pnpm/@angular+fire@20.0.1_b3d6211399b528bde26c95436c0ed9a1/node_modules/@angular/fire/compat/storage/index.d.ts:9:33:
9 │ import * as firebase_compat from 'firebase/compat';
╵ ~~~~~~~~~~~~~~~~~

With `@angular-devkit/build-angular` it works fine.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

@angular/fire compat storage を使用した Angular 20 の移行を再現し、新しい builder と @angular-devkit/build-angular を比較します。参照されている @angular/fire/compat/storage/index.d.ts の firebase/compat の import と、builder 移行の出力から始めます。移行後のアプリケーションが TS2307 なしでビルドできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, firebase, typescript
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。