You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that rxfire has the same TS/ESM compatibility problem as the firebase-js-sdk issue here: firebase/firebase-js-sdk#6300. The problem occurs with TS 4.7+ and ESM with the following tsconfig.json options:
I'm actually running into the error in a project that uses reactfire, which depends on rxfire. Compilation fails with errors like:
./node_modules/reactfire/dist/database.d.ts:1:29 - error TS7016: Could not find a declaration file for module 'rxfire/database'. './node_modules/rxfire/database/index.esm.js' implicitly has an 'any' type.
There are types at './node_modules/rxfire/database/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'rxfire' library may need to update its package.json or typings.
1 import { QueryChange } from 'rxfire/database';
I believe that
rxfire
has the same TS/ESM compatibility problem as thefirebase-js-sdk
issue here: firebase/firebase-js-sdk#6300. The problem occurs with TS 4.7+ and ESM with the followingtsconfig.json
options:I'm actually running into the error in a project that uses
reactfire
, which depends onrxfire
. Compilation fails with errors like:Related:
The text was updated successfully, but these errors were encountered: