-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Using aws-amplify-react-native with Typescript? #281
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
Comments
@kevinsperrine so you are using typescript to develop a react native app? Could you give more details about how you are using the library with Typescript? |
@powerful23 Yes, exactly. I've created a minimum repo here https://github.com/kevinsperrine/aws-amplify-react-native-typescript-test. I created it with:
So, I'm seemingly stuck because both |
FWIW: I just added a postinstall script package.json to comment out the Node require definition and use react-native's version instead since that's the environment I'm actually working in.
|
Have you made any progress on this issue? Facing same thing |
On Ubuntu I needed to tweak the sed call
|
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Is it possible to use aws-amplify-react-native with Typescript? If I don't include the
@types/node
definitions I get lots of errors about 'stream', 'Buffer', 'http', and other node types missing, but If I include the@types/node
definitions then I get a duplicate 'require' error. What's the work-around here? I know RN isn't a full node environment, so I'm not even sure exactly which types are available to the aws-sdk.The text was updated successfully, but these errors were encountered: