-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] #263
Comments
Ok i will try this |
😃 Thank you so much friend! I'm here if you need me. |
@1san1 How are you feeling about this? Is there anything I can do to help? I'm here if you need me. |
@4-Leafs-Code I am very sorry that I am unable to look at these issues since I am very busy these days. I am unassigning myself from this issue. |
@4-Leafs-Code I find this issue very interesting ,Maybe I don't completely know and never thought about this too as I myself used used to delete the package.json to work on with my React projects somethimes when i find bug |
@4-Leafs-Code I have got reference from the codinasion but i like to help as much 👍 setupMiddlewares: (middlewares, devServer) => {
} In this example, we define the myOverrides.js file to contain the customizations we want to make to the middleware array. We then use webpack-merge to merge this file with the original middleware array. This approach allows you to make customizations without directly modifying files in node_modules, which helps ensure that your dependencies remain "clean" and avoids potential issues with future updates. |
@4-Leafs-Code ,If u find the response interesting and useful kindly ,inform me too. This motivate me to contribute more to open-source. |
@ANUSHRAV01 This sounds like a great solution! We are going to test it out right now and let you know. Thanks so much for this helpful advice. |
I'm so happy that FearlessTech will keep you Open Sourcing. This is the best way to keep technology moving in a forward direction. |
Is the Issue solve? |
Our project has this error when you go to run the app from the terminal. I found this article: https://stackoverflow.com/questions/70469717/cant-load-a-react-app-after-starting-server
The most voted answer does correct the issue:
In file: node_modules/react-scripts/config/webpackDevServer.config.js change this:
to this:
A user in this article said, "It is not advised to change files in the node_modules folder. Any changes there will be destroyed once dependencies are installed which should be happening on a production build or CI to ensure your deps are "clean" If, and I stress IF there is a need to update node_modules dependencies then the safer solution is to use patch-package. But this should be as limited as possible and when no other solution is possible, the better and longer term solution is to either open a PR with the changes or jump over to an existing PR and subscribe to it to get updates when it is merged."
The issue here is to figur out what solution solves the problem without altering the node_modules.
The text was updated successfully, but these errors were encountered: