[react native] Missing export Ducoment
for typescript
#6198
Labels
Encryption:Off
Frequency:Always
Needs-Attention
Reporter has responded. Review comment.
O-Community
Repro:Always
T-Bug
How frequently does the bug occur?
Always
Description
I need to use the
Document
class because I am creating a customize get collection functionThis will raise an error {{TS2305: Module 'realm' has no exported member Document }}
Cause
The
@realm
did not export theDocument
type, but therealm
package did. This causes the compiler to be unable to find the definition ofDocument
type.Workaround
I did find a workaround, by manually adding the
realm
package to thetsconfig.json
, the compiler is able to find the type.Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
test.ts
with the following codeError will raise on the import line.
Version
"realm": "^12.2.1",, "@realm/react": "^0.6.0",
What services are you using?
Atlas App Services: Functions or GraphQL or DataAPI etc
Are you using encryption?
No
Platform OS and version(s)
Win11 23H2
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: