When i add const express = require('express')
in my routes/index.js i get this error
Asked
Active
Viewed 17 times
0

plox
- 1
-
1You 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