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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Could not find a declaration file for module 'react-native-appwrite'. node_modules/react-native-appwrite/dist/cjs/sdk.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-native-appwrite if it exists or add a new declaration (.d.ts) file containing `declare module 'react-native-appwrite' #13

Closed
2 tasks done
bryanltobing opened this issue Apr 12, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@bryanltobing
Copy link

馃憻 Reproduction steps

i created an empty expo app

npx create-expo-app my-app

install react-native-appwrite using this command

npx expo install react-native-appwrite react-native-url-polyfill

馃憤 Expected behavior

it should typed correctly

馃憥 Actual Behavior

image

馃幉 Appwrite version

Different version (specify in environment)

馃捇 Operating system

MacOS

馃П Your Environment

v0.2.2

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@bryanltobing bryanltobing added the bug Something isn't working label Apr 12, 2024
@SayanDasDev
Copy link

SayanDasDev commented Apr 12, 2024

yeah same error here

edit: did a little checking
the error will be fixed just by adding /src after react-native-appwrite
like this
import { Account } from "react-native-appwrite/src";

because the index.ts file is in src folder

@aaronksaunders
Copy link

@SayanDasDev this works, but hopefully it will be properly fixed

@Gincioks
Copy link

Gincioks commented May 6, 2024

Until it is fixed, you can use my extended SDK. https://github.com/Arietta-Studio/appwrite-sdk-ts. Hope it helps.

@stnguyen90
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants