rxfire
rxfire copied to clipboard
Could not Find Declaration File
It doesn't seem to work in Typescript. I installed it and imported it via:
import { docData } from 'rxfire/firestore';
I get this:
Could not find a declaration file for module 'rxfire/firestore'.
'c:/web projects/my-project/node_modules/rxfire/firestore/index.esm.js'
implicitly has an 'any' type.
There are types at 'c:/web projects/my-project/node_modules/rxfire/firestore/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.
The typing is corrupt.
Thanks,
J
Is this REPO still maintained? This is is a huge problem that makes this package unusable!
J
this lib does not work with angular v18 nor @angular/fire v18. mainly the problem resides in rxfire lib. I get ERR_ABORTED 504 (Outdated Optimize Dep) Error in broswer console while using rxfire in angular v18
I also noticed the typings were having issues and filed a bug on angular/fire here. After investigating further, it appears the package.json
should have the exports
property updated as follows... awww man right as I was writing this I noticed the package.json
was bumped to v6.0.6 in main
and already modified to include the fix but just hasn't been released yet :sweat_smile:. The commit that fixes this appears to have been pushed ~5 months ago.
@davideast could you publish another release for this?
Is there anything that could be done to get v6.0.6 released? This is blocking Angular v18 upgrades.
For now, I'm using the 6.0.6-canary.5cfad21 version, which doesn't seem ideal.
I made it to work by changing "moduleResolution" from "bundler" to "node" in tsconfig.json file. The problem seems to go away. And typing are working