Git Product home page Git Product logo

react-redux-firebase-app's Introduction

React-Redux-Firebase-App

All course files for the React, Redux & Firebase App playlist on The Net Ninja YouTube channel.

react-redux-firebase-app's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-redux-firebase-app's Issues

Type Error: firebase.auth not a function

Windows 10-
Firebase version 6.11.0

I have a pretty simple project. Everything is in the index.js file and I created the project using firebase init.

image

image

I call this on postman, supplying the correct data, however I get a Type Error: firebase.auth() is not a function.

I tried reinstalling the node modules, new empty project, installing firebase and functions in different order, importing firebase auth directly, and always get the same error.

Anyone can help with this?

Thanks

Getting 'TypeError: firebase.auth not a function'

hello i am having a slight issue on my react app concerning ' typeError: firebase.auth not a funtion

the code below is my index.js
index

below is my fbConfig.js file
config

also the authAction.js file
authAction

So finally this is my Signin.js which contains the higer order component connect to mapDispatchToProps
signin1
signin2

this is the error message i get
error

TypeError: Cannot read Undefined property'sdk_version' what is the solution to his mistake?

TypeError: Object ( ... ) is not a function. I was taking his mistake. reaction-Redux-Firebase 2.2.4 version I was told to drop, I did but gives error.web browser new mistake:

TypeError: Cannot read property 'SDK_VERSION' of undefined.what do you think the solution is?you help me?

package.json

{
  "name": "marioplan",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.3.2",
    "@testing-library/user-event": "^7.1.2",
    "firebase": "^7.8.2",
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-redux": "^7.1.3",
    "react-redux-firebase": "^2.2.4",
    "react-router-dom": "^5.1.2",
    "react-scripts": "3.4.0",
    "redux": "^4.0.5",
    "redux-firestore": "^0.12.0",
    "redux-thunk": "^2.3.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "eslint-plugin-react": "^7.18.3"
  }
}

index.js

/* eslint-disable no-unused-vars */
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';

import {createStore, applyMiddleware,compose} from 'redux';
import rootReducer from './store/rootReducer';
import {Provider} from 'react-redux'
import thunk from 'redux-thunk'
import {getFirestore,reduxFirestore } from 'redux-firestore'
import {getFirebase,reactReduxFirebase} from 'react-redux-firebase'
import fbConfig from './config/fbConfig'

const store=createStore(rootReducer, 
    compose(
    applyMiddleware(thunk.withExtraArgument({getFirebase,getFirestore})),
    reduxFirestore(),
    reactReduxFirebase()
    )
    );

ReactDOM.render(<Provider store ={store}></Provider>><App />, document.getElementById('root'));

Pagination in Dashboard

If projects collections contains a lot of documents, probably 2,000, is there a way to bring 25 at time, like Google search. This update would mean a lot! Thanks

create project error from ProjectReducer.js

const initState = {}
const projectReducer = (state = initState, action) => {
switch (action.type) {
case 'CREATE_PROJECT_SUCCESS':
console.log('create project success');
return state;
case 'CREATE_PROJECT_ERROR':
console.log('create project error');
return state;
default:
return state;
}
};

export default projectReducer;

the only thing that gets console logged is create project error. Should this be the case?

Changing individual project URL

Using this tutorial, the url for each individual project is the long, ugly id.

Each project of mine has a projectURL property. How do I change the URL to that?

License?

Hey, I'm looking to use this as a base for an upcoming open source project.

Do you have a license in mind? An MIT-style license would be killer.

error using ReactReduxFirebaseProvider

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import {createStore,applyMiddleware,compose} from 'redux'
import rootReducer from './store/reducers/rootReducer';
import {Provider} from 'react-redux'
import thunk from 'redux-thunk'
import {createFirestoreInstance,getFirestore} from 'redux-firestore'
import {getFirebase} from 'react-redux-firebase'
import fsConfig from './config/fsConfig'
import firebase from 'firebase/app'
import ReactReduxFirebaseProvider from 'react-redux-firebase'

const store= createStore(rootReducer,compose(
applyMiddleware(thunk.withExtraArgument({getFirebase,getFirestore})),
//reduxFirestore(fsConfig),
//reactReduxFirebase(fsConfig)
)
);

const rrfProps = {
    firebase,
    config: fsConfig,
    dispatch: store.dispatch,
    createFirestoreInstance
  };

ReactDOM.render(

<ReactReduxFirebaseProvider {...rrfProps}>


, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();

i got version error so used code for version-3 for firebase and made a few change using ReactReduxFirebaseProvider and create firestore instance but now i am getting an error stating
"Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. at the <Context.Provider> component:" occuring at ReactReduxFirebaseProvider

Video #19

Trying to get all the projects from Firestore. When I use the below in the dashboard

firestoreConnect([
{collection: 'apps'}
])

I get the below error in the app

TypeError: Cannot read property 'firebase' of undefined
FirestoreConnect.componentWillMount
node_modules/react-redux-firebase/es/firestoreConnect.js:65
62 | _createClass(FirestoreConnect, [{
63 | key: 'componentWillMount',
64 | value: function componentWillMount() {

65 | var _store = this.store,
| ^ 66 | firebase = _store.firebase,
67 | firestore = _store.firestore;
68 |

Beginner developer

Hi my name is Eddie, and I'm learning react right now with firebase, but I don't understand much yet so I'm a little bit lost on giving user different roles. So I'm building a personal blog and my client want to admin to the site. She want to have the option to upload new blog and regular user just have the option to comment and like a blog. But I don't know how to set each user role in firebase database.

Firebase permission denied: authError with useSelector

Hi, I'm Sangwook.
I'm studying to develop the react app with firebase.
Your Tutorial is SO COOL!!! Those are the best lectures!
I prefer to the latest version, so I create marioplan with react hooks and latest firebase library.

But, I have a trouble in Tutorial #32-Firestore Sercurity Rules.

I use "useSelector" for using authError in SignIn.js like this
const authError = useSelector(state => state.auth.authError);

After I signed in the app, when I log out,
there is a firebase error "Unhandled Rejection (FirebaseError): Missing or insufficient permissions."

I think it is because the app try to read the database for authError even user is not signed in.
So, I try to move the hooks into handleSubmit, but it is not allowed by hooks rule.

How can I solve this problem?
Thank you.

error in composing firebasestore and firebase with middelware.

const store = createStore(rootReducer,
compose(
applyMiddleware(thunk.withExtraArgument({getFirebase, getFirestore})),
reactReduxFirebase(fbConfig), // redux binding for firebase
reduxFirestore(fbConfig) // redux bindings for firestore
)
);

in this line error is throwing it says TypeError: Object(...) is not a function and say webpack_require in webpack/bootstrap:785 line

Error: Server Error. unable to verify the first certificate

After I run 'firebase init' command and going through all the questions, ultimately it throws an error as
'Error: Server Error. unable to verify the first certificate'. What should I do?
@iamshaunjp

firebase init

 ######## #### ########  ######## ########     ###     ######  ########
 ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
 ######    ##  ########  ######   ########  #########  ######  ######
 ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
 ##       #### ##     ## ######## ########  ##     ##  ######  ########

You're about to initialize a Firebase project in this directory:

? Are you ready to proceed? Yes
? Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confi
rm your choices. Functions: Configure and deploy Cloud Functions, Hosting: Configure and deploy Firebase Hosting sites

=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.

? Please select an option: Use an existing project
? Select a default Firebase project for this directory: meww-project (meww-project)
i Using project meww-project (meww-project)

=== Functions Setup

A functions directory will be created in your project with a Node.js
package pre-configured. Functions can be deployed with firebase deploy.

? What language would you like to use to write Cloud Functions? JavaScript
? Do you want to use ESLint to catch probable bugs and enforce style? No
? File functions/package.json already exists. Overwrite? Yes

  • Wrote functions/package.json
    ? File functions/index.js already exists. Overwrite? Yes
  • Wrote functions/index.js
    ? File functions/.gitignore already exists. Overwrite? Yes
  • Wrote functions/.gitignore
    ? Do you want to install dependencies with npm now? Yes
    audited 253 packages in 2.935s
    found 0 vulnerabilities

=== Hosting Setup

Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to be uploaded with firebase deploy. If you
have a build process for your assets, use your build's output directory.

? What do you want to use as your public directory? dist
? Configure as a single-page app (rewrite all urls to /index.html)? Yes

Error: Server Error. unable to verify the first certificate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.