-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Type-check throws an error for Analytics.record method using Kinesis provider #9707
Comments
Hi @vojtech-simko 👋 thanks for raising this issue. I was able to reproduce the error and will label this as a bug for the team to look into further. |
Thank you @chrisbonifacio 👍 |
Any update on this or workaround? Would be happy about some hints. |
I'm highly interested in a solution to this issue. Do you have a timeline until when it will be fixed? |
I have worked around this issue by using the Kinesis pluggable provider itself.
The sample code is as follows:
Please make Kinesis Provider is registered before this.
Please confirm if this works for you. |
Hi this issue is now fixed and merged in the latest release. Please let us know if this is still an issue and we can re-open this issue. |
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Authentication, Analytics, GraphQL API, Storage
Amplify Categories
auth, storage, function, api, analytics
Environment information
Describe the bug
After upgrading from
aws-amplify@3.4.3
toaws-amplify@4.3.16
and later to modular packages @aws-amplify/... type-checking throws an error forAmplify.record
method when trying to stream data via AWSKinesisProvider. (problem is there if I importAmplify
fromaws-amplify
as well as from@aws-amplify/analytics
)In documentation it's written:
But when I try to use it this way it throws an error:
I assume the problem is caused by
AnalyticsEvent
only defining structure for sending events to Pinpoint and not Kinesis.Expected behavior
Analytics.record
should allow me to send events via Kinesis provider without type-check errors.Reproduction steps
npm i aws-amplify
ornpm i @aws-amplify/core @aws-amplify/analytics
@aws-amplify/analytics
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: