-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[🐛] Firebase not recognized price in items #5347
Comments
We're on v12 now or at least v12.5 Others had success with quirks here #4578 This must be something project specific, sorry |
Sorry, but I don't understand... The price item is already defined here in node_modules/@react-native-firebase/analytics/lib/structs.js also in here node_modules/@react-native-firebase/analytics/lib/index.d.ts I'm running the app with breakpoints now to debug it. I put breakpoints at node_modules/@react-native-firebase/app/lib/common/struct.js on why there is no Then I tried to run again from the start (refresh app) and debug it at At least can you help me explain why there's no price key in here? As you mention in #5232 (comment) this fix is already in version |
I can only assume the code executing is somehow not the code you are inspecting. That's intentionally vague because I don't know how that could happen but it's a hypothesis that fits the data. |
Yes, It was cached in my machine. I start new project and it works well. Then I run this project again and everything is fine. I am sorry for creating this issue and thank you so much |
If I had a dollar for every time I've had the same thing happen ;-). It's how I knew to suggest it, and I've personally contributed to |
Issue
I already read this #5227 and see this #5232 so I upgraded my analytics to version 11.4.1. But, every time I send price, it gets an error:
Error: firebase.analytics().logAddToCart(*): unknown property 'items'.
I tested with this simple code:
I checked struct.js, index.d.ts, and everything else, I confirm that price is defined. I also do rm -rf node modules, reinstall it, reset-cache, and clean gradle... But I still get this error. Why?
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:firebase v6
Firebase
module(s) you're using that has the issue:analytics
TypeScript
?N
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: