All Questions
716
questions
0
votes
1
answer
702
views
webpack can't find required files that doesn't exist
I'm trying to perform server side rendering and I copied course teacher code,
my src folder structure is /src -> [/client -> index.jsx, /server -> server.js, /shared -> Header.jsx].
I got ...
1
vote
1
answer
6k
views
webpack wait until bundle finished taking so much time to build
I got an issue every time I want to run my react app it takes more than 10 minutes bundle to finished, it stack on these command
[webpack-dev-middleware] wait until bundle finished:
I have tried some ...
1
vote
0
answers
59
views
Why we use webpack in react applications
Actually, I'm just curious as to why webpack is used in react applications. Why do I still use Webpack to create a dist folder with a dist.js file if I can create a build using npm run build?
Can ...
1
vote
1
answer
495
views
why process.env doesn't work in app.js file but works in webpack.config.js?
why process.env doesn't work in app.js file but works in webpack.config.js? I have my own webpack that I created myself. It was not created with CRA
the version so it is correct to deduce? Or is there ...
0
votes
2
answers
1k
views
Module parse failed: Unexpected character '@'
I am creating a react app without using npx create-react-app, i am using webpack, and trying to use the tailwind CSS, with it.
But getting error.
How should I do confugration the to the react app so ...
2
votes
0
answers
210
views
Webpack Dev Server - hot reload on another local server
We have a React app that's embedded and served in .NET CMS project.
App is bootstrapped with Create React App and webpack config tweaked with craco.
Webpack dev server is running at default location ...
0
votes
1
answer
3k
views
You need to install 'webpack-dev-server' for running 'webpack serve'. - error getting when give npm start in React Application
[webpack-cli] You need to install 'webpack-dev-server' for running 'webpack serve'.
Error: Cannot find module 'ajv/dist/compile/codegen'
I getting error like this when give npm start in React ...
0
votes
0
answers
3k
views
How to fix: Access to process.binding('http_parser') is deprecated
I've seen a lot of "angular" responses to this but not any REACT only ones.
PACKAGE.JSON
{
"name": "sdfsdf",
"version": "1.0.0",
"...
0
votes
2
answers
413
views
React element type is invalid, but imports appear correct
I'm setting up a new development environment (moved from Windows 7 to Lubuntu), and now I'm trying to set up a React app on it for the first time. Well, second. create-react-app worked, but I like to ...
1
vote
2
answers
2k
views
Hot reloading not working on React project with Webpack 5
When I save my changes, the whole app is re-rendered and not only the changes that I have made.
I have tried adding target: "web" to my devServer and also tried the following guides:
https:/...
1
vote
0
answers
270
views
url.format is not a function at ./node_modules/react-dev-utils/webpackHotDevClient.js
I've upgraded my React project to Webpack 5, upgraded react-dev-utils to the latest version as well
Webpack Dev Server is giving me this error:
main.js:3940 Uncaught TypeError: url.format is not a ...
5
votes
1
answer
4k
views
Webpack Module Federation loads chunks from wrong URL
I am building a project with webpack module federation with the following setup:
React host (running on localhost:3000)
Angular Remote 1 (running on localhost:4201)
Angular Remote 2 (running on ...
3
votes
0
answers
3k
views
Webpack Dev Server: Error occurred while proxying request [ECONNRESET]
I have a React app that uses webpack dev server for localhost. There's a proxy NodeJS server to which Webpack redirects all UI requests. When I run webpack dev server and open the app in Chrome, the ...
1
vote
2
answers
2k
views
Can't get webpack-dev-server running
I am having some trouble getting my react app to run. I have tried multiple things, downgrading webpack version, doing npm i -g webpack-dev-server and even npm i -g webpack-cli and nothing is working. ...
0
votes
0
answers
40
views
How can I get rid of [webpack-dev-server] Server started: Hot Module Replacement enabled?
I have an error says in the screenshot below and I don't know what to do.
It says something in index.js on the right.
If anyone know, please guide me through. Any help is appreciated.
Thanks!