ionic-react-auth-firebase icon indicating copy to clipboard operation
ionic-react-auth-firebase copied to clipboard

TypeError: Cannot read property 'subject' of undefined

Open PierreCrot opened this issue 5 years ago • 5 comments

Hi currently trying the code and have an issue when I try to add an item. Here is the errors

TypeError: Cannot read property 'subject' of undefined (anonymous function) src/pages/TabOnePage.js:45

45 | <h3>{value.content.subject}</h3>

TabOnePage._renderItems src/pages/TabOnePage.js:31

31 | return this.props.store.itemEntries.map(([key, value]) => {

View compiled TabOnePage._renderList src/pages/TabOnePage.js:92

92 | <div style={{paddingTop: this.state.refreshing ? 40 : 0}}>

View compiled TabOnePage.render src/pages/TabOnePage.js:122

122 | <IonLabel>Current User: {store.activeUser.email}</IonLabel>

▶ 32 stack frames were collapsed. (anonymous function) src/store/index.js:171

171 | return runInAction(() => {

PierreCrot avatar Jun 04 '20 15:06 PierreCrot

Will take a look today and let you know.

On Thu, Jun 4, 2020 at 11:10 AM Pierre [email protected] wrote:

Hi currently trying the code and have an issue when I try to add an item. Here is the errors

TypeError: Cannot read property 'subject' of undefined (anonymous function) src/pages/TabOnePage.js:45

45 |

{value.content.subject}

TabOnePage._renderItems src/pages/TabOnePage.js:31

31 | return this.props.store.itemEntries.map(([key, value]) => {

View compiled TabOnePage._renderList src/pages/TabOnePage.js:92

92 | <div style={{paddingTop: this.state.refreshing ? 40 : 0}}>

View compiled TabOnePage.render src/pages/TabOnePage.js:122

122 | <IonLabel>Current User: {store.activeUser.email}</IonLabel>

▶ 32 stack frames were collapsed. (anonymous function) src/store/index.js:171

171 | return runInAction(() => {

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aaronksaunders/ionic-react-auth-firebase/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEAFGJT63DKZRCXKGVQFOLRU62NPANCNFSM4NSXAPLQ .

--

--

Aaron K. Saunders CEO Clearly Innovative Inc - Luma Lab - In3 [email protected] www.clearlyinnovative.com www.In3DC.com

This email message and any attachment(s) are for the sole use of the intended recipient(s) and may contain proprietary and/or confidential information which may be privileged or otherwise protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient(s), please contact the sender by reply email and destroy the original message and any copies of the message as well as any attachment(s) to the original message.

aaronksaunders avatar Jun 04 '20 15:06 aaronksaunders

Are you using your own firebase configuration? I just tested the code and it worked fine for me? I would need to see if there is some error coming from firebase

aaronksaunders avatar Jun 04 '20 20:06 aaronksaunders

I use my configuration but there is maybe an issue. I ve just copy pasted the var firebaseConfig = { from my firebase.

PierreCrot avatar Jun 05 '20 08:06 PierreCrot

When I try to create an account I have this error message: Error getting document: FirebaseError: Missing or insufficient permissions. at new n (http://localhost:8101/static/js/6.chunk.js:30449:19) at t._n (http://localhost:8101/static/js/6.chunk.js:34291:12) at t.kn (http://localhost:8101/static/js/6.chunk.js:34460:25) at n.onMessage (http://localhost:8101/static/js/6.chunk.js:38346:29) at http://localhost:8101/static/js/6.chunk.js:38286:18 at http://localhost:8101/static/js/6.chunk.js:38324:29 at http://localhost:8101/static/js/6.chunk.js:35981:25

PierreCrot avatar Jun 05 '20 08:06 PierreCrot

sorry i have been distracted. but it seems like you need to set the security in firebase rules

aaronksaunders avatar Jun 15 '20 20:06 aaronksaunders