rxfire icon indicating copy to clipboard operation
rxfire copied to clipboard

Could not Find Declaration File

Open jdgamble555 opened this issue 10 months ago • 5 comments

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

jdgamble555 avatar Mar 25 '24 12:03 jdgamble555

Is this REPO still maintained? This is is a huge problem that makes this package unusable!

J

jdgamble555 avatar Apr 11 '24 00:04 jdgamble555

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

panesardev avatar May 27 '24 13:05 panesardev

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?

celestius0 avatar May 30 '24 21:05 celestius0

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.

jits avatar Jun 15 '24 09:06 jits

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

panesardev avatar Jun 15 '24 21:06 panesardev