r/reactjs • u/Parking_Landscape396 • Aug 10 '22
why doesnt localhost reflect my changes after clearing cache with my Reactjs app
Things you should know:
I am deploying to netlify and my apps stack is reactjs front end with a rails backend.
I have a monorepo structure and my client is nested in my backend
using foreman with the foreman start -f Procfile.dev command to start my app.
Summary:
When I run netlify dev --live the app loads fine with my new changes through netlify but since I am using foreman nothing seems to update.
Things I have tried:
Deleting my package-lock.json and npm install again
Reaching out to netlify support (waiting to hear back)
clearing / emptying my browser cache
git rebasing to a commit where my localhost wasn't caching
Thoughts on this?
View all comments
Show parent comment
1
u/Parking_Landscape396 Aug 11 '22
thats the weirdest thing because the build was working for me. I wonder if it has something to do with Eslint, here's my
package.json{"name": "parking-landscape","version": "0.1.0","private": true,"proxy": "http://localhost:3000","dependencies": {"-": "^0.0.1","@craco/craco": "^5.9.0","@reduxjs/toolkit": "^1.8.0","@stripe/react-stripe-js": "^1.7.0","@stripe/stripe-js": "^1.23.0","@tensorflow-models/qna": "^1.0.1","@tensorflow/tfjs": "^3.15.0","@testing-library/jest-dom": "^5.16.2","@testing-library/react": "^12.1.2","@testing-library/user-event": "^13.5.0","@use-gesture/react": "^10.2.11","axios": "^0.26.1","eslint-plugin-react": "^7.29.4","framer": "^2.1.0","framer-motion": "^4.1.17","framer-motion-3d": "^6.2.8","ionicons": "^6.0.1","loaders.css": "^0.1.2","luxon": "^2.3.2","moment": "^2.29.1","react": "^17.0.2","react-app-rewired": "^2.2.1","react-bulma-components": "^4.1.0","react-dom": "^17.0.2","react-hook-form": "^7.27.1","react-icons": "^4.3.1","react-loader-spinner": "^6.0.0-0","react-loaders": "^3.0.1","react-redux": "^7.2.6","react-router": "^6.2.1","react-router-dom": "^6.2.1","react-scripts": "^5.0.0","react-spring": "^9.4.3","react-use-gesture": "^9.1.3","react-use-measure": "^2.1.1","redux-toolkit": "^1.1.2","source-map-loader": "^3.0.1","three": "^0.139.2","web-vitals": "^2.1.4"},"scripts": {"start": "PORT=4000 react-scripts start","build": "react-app-rewired build","test": "react-app-rewired test","eject": "react-scripts eject"},"browserslist": {"production": [">0.2%","not dead","not op_mini all"],"development": ["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}