flatlogic / react-dashboard

🔥React Dashboard - isomorphic admin dashboard template (React.js, Bootstrap, Node.js, GraphQL, React Router, Babel, Webpack, Browsersync) 🔥

Home Page:https://flatlogic.com/admin-dashboards/react-dashboard/demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when Yarn Dev

Vn-ChemGio opened this issue · comments

In first time Load, screen need loading Login
But no token or invalid token in localStorage
So When run
src/pages/login/Login.js has error at line 43

return date < data.exp;
change to
return data && date < data.exp;
has fix it

And when load dashboard, has some error by posts null
check /src/actions/posts and fix
Please

Hi, you have to set up database locally and connect react-dashboard to it, please, let me know, your database is running locally or not?

I'm running by command yarn dev, when I clone your project,
So I don't know database run in local or not, but I had been not changed file in /server directory after clone
Butin Chrome dev tool, I seen /graphql api has been call and response data so something is null

Note:
You can see 2 problem in my issue

  1. src/pages/login/Login.js has error at line 43 after clone becase jwt decode fail => data null
  2. Error by posts null

Please, consider looking through the readme file, you have to set up database to be able to add posts to the dashboard, if you don't want to have crud functionality run project in development mode