0

When i add const express = require('express') in my routes/index.js i get this error

enter image description here

plox
  • 1
  • 1
    You cannot include nodejs modules such as express from within a React application made with CRA. Add those lines to a seperate js file outside of your react project's "src" folder, and run it with node. – Adarsh Hegde May 08 '20 at 12:39
  • a friend has her in src and her react app runs – plox May 08 '20 at 13:45

0 Answers0