I am trying to integrate 2 react apps I have been working on into 1 new react application (all created using npx create-react-app nameofapp) but I can not get the libraries I have used in the previous app to load/work in the new application even though I have copied the depencencies from the previous application and pasted in the new package.json file and run npm i and can see the folders for the libraries in node_modules folder of new application.
I am only importing fs in the js file from previous application at the moment and still get an error when running npm start which is module not found and it seems to be looking in the src file probably because the js file is in the src folder which is using import fs from "fs" to work with the fs package.
One other thing I can see different is that I had to run node app on previous application in src folder to start it where npm start runs this application.
I'd really appreciate help with this as I am still new to node and have been stuck all day on just integrating 2 applications into one.