0

I recently started working with ReactJS. So I was following a tutorial which shows how to configure babel-cli. So with it, I've installed all necessary packages including liter-server.
I understood and implemented pretty much everything same but, while executing a command that specified the path in the project making a problem

Project Structure

i.e I've installed my lite-server and when I execute this command in the root of my project
lite-server -d ./dist -p 3000 I'm getting 404. i.e In browser when I enter localhost:3000 I'm getting Cannot GET / But when I redirect to dist and type this command
lite-server -p 3000.
What's wrong with ./dist? I'm in relative path and it should work fine as it is working pretty well in the tutorial.

Kishore Kumar Korada
  • 1,204
  • 6
  • 22
  • 47

0 Answers0