creativetimofficial / react-webpack-babel-md-tutorial

This is a Tutorial to showcase the usage of React with Webpack and Babel.
MIT License
29 stars 29 forks source link

Routes Not working - Cannot GET /dashboard #2

Closed ramyku closed 5 years ago

ramyku commented 5 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

Material UI dashboard should be visible

Please describe the behavior you are expecting

Current Behavior

The app at location localhost:8080/admin/dashboard does not start and displays "Cannot GET /dashboard" message on the browser. Same error for all other routes Cannot GET /table Cannot GET /user etc

What is the current behavior? Not routing properly

Failure Information (for bugs)

The code expects a routes folder and an index.jsx file.

import indexRoutes from "routes/index.jsx";

However, no Routes folder or index.jsx file is available . I tried using the routes.js file in the root directory src but still the app not working

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

I followed all the steps your article provided. Exact steps. It should reproduce two errors 1. css error where a typo error exits and 2. the routing error

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

No error in the console. In the browser you get Cannot GET /dashboard

Please include any relevant log snippets or files here.