Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not Find Declaration File #100

Closed
jdgamble555 opened this issue Mar 25, 2024 · 6 comments
Closed

Could not Find Declaration File #100

jdgamble555 opened this issue Mar 25, 2024 · 6 comments

Comments

@jdgamble555
Copy link

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
Copy link
Author

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

J

@panesardev
Copy link

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

@celestius0
Copy link

celestius0 commented May 30, 2024

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 😅. The commit that fixes this appears to have been pushed ~5 months ago.

@davideast could you publish another release for this?

@jits
Copy link

jits commented Jun 15, 2024

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.

@panesardev
Copy link

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

@jamesdaniels
Copy link
Collaborator

v6.1 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants