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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'subject' of undefined #1

Open
PierreCrot opened this issue Jun 4, 2020 · 5 comments
Open

TypeError: Cannot read property 'subject' of undefined #1

PierreCrot opened this issue Jun 4, 2020 · 5 comments

Comments

@PierreCrot
Copy link

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(() => {

@aaronksaunders
Copy link
Owner

aaronksaunders commented Jun 4, 2020 via email

@aaronksaunders
Copy link
Owner

aaronksaunders commented Jun 4, 2020

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

@PierreCrot
Copy link
Author

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

@PierreCrot
Copy link
Author

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

@aaronksaunders
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants