Skip to main content

All Questions

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!
user avatar
1 vote
1 answer
62 views

How to add inline src to image ( Webpack 5 )

I tried to add a string representation of [src] to an image, but it doesn't work. import React from "react"; import cn from "classnames"; import "./index.scss"; export ...
Viktor's user avatar
  • 33
-1 votes
1 answer
2k views

how to solve Module not found: Error: Can't resolve 'ts-loader'?

ERROR in index Module not found: Error: Can't resolve 'ts-loader' in '/home/asd123456/ic-projects/token' resolve 'ts-loader' in '/home/asd123456/ic-projects/token' Parsed request is a module using ...
JasonLim's user avatar
0 votes
1 answer
35 views

Cannot GET / in simple React example

I am doing some React book examples. I get following error with below config after running npm run start: Cannot GET / package.json { "name": "typescript", "version":...
gipcu's user avatar
  • 321
0 votes
1 answer
29 views

How to make the variable calcuate immediately while running npm run build

I defined a variable in index.js file. const isDev = process.env.NODE_ENV === 'development' const routes = [ { path: '/', redirect: isDev ? '/site-map' : '/single-order', }, isDev &&...
cookie's user avatar
  • 79
2 votes
0 answers
373 views

React Webpack Config error - You may need an appropriate loader to handle this file type

I was trying to learn about webpack I follow the instructions on the documentation but it gives me an error of. You may need an appropriate loader to handle this file type, currently no loaders are ...
Gino's user avatar
  • 79
1 vote
1 answer
705 views

react-app-rewired add writeDisk option on devserver

I am using react-app-rewired to override my webpack configurations. But I tried to set writeDisk option but it doesn't work. Here is config-overrides.js file const { override, disableChunk, ...
segito10's user avatar
  • 388
0 votes
1 answer
695 views

Where Does a Webpack Output Path of Root ('/') Output To In The Filesystem?

I'm looking at an existing webpack react project and the output path is set to '/'. My understanding is that output path is an absolute path so that is setting the output for the build to the root dir ...
Tim Milstead's user avatar
0 votes
1 answer
901 views

Webpack Dev Server stops on error originated in postcss-loader

I'm using webpack-dev-server for development but after upgrading to webpack 5 it just stops when postcss-loader can't parse css file. I start dev server via npx webpack-dev-server and when I start ...
Sergey Shevchenko's user avatar
1 vote
0 answers
84 views

Browser tab freezes when running webpack-dev-server in development mode using remote Module Federation module

Dependency versions: webpack: 5.73.0 webpack-dev-server: 4.9.2 This occurs when running a host application via webpack-dev-server that consumes micro-apps via ModuleFederationPlugin. Example host ...
s-gmr's user avatar
  • 11
0 votes
1 answer
2k views

ReactJS: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I'm facing the below issue on a ReactJS project (A small project not a complex big one) which is manually configured with Webpack and Babel. After some time ( 2 - 3 hrs ) this error popped up and if I ...
Sandip Dhang's user avatar
0 votes
0 answers
310 views

How to deploy a React project using Webpack on Server side

I have come across many articles pertaining to creating a client side project using webpack and react. But how to deploy the same client side project on to a server to be hosted on Linux. Which ...
Pooja G's user avatar
  • 41
0 votes
2 answers
417 views

webpack duplicate work during serving files

I've just faced to unpredictable situation during using custom webpack config. I will try to explain the problem. This is my simple app (file index.js): console.log('!!this', this); This is my ...
Dmitrii Esin's user avatar
0 votes
1 answer
2k views

Uncaught TypeError: Cannot read properties of null (reading 'useState')

In the module federation remote and host app configs attached below and its a react typescript applications. A simple button component is used in the host app, able to see the component with default ...
Bhairesh M's user avatar
0 votes
0 answers
93 views

Page is not refereshing on file change in React with Webpack & Express configuration

I have created an react application from scratch with the help of webpack and express server. However, everthing is working fine except page is not reloading whenever i do some changes in my react ...
James's user avatar
  • 411

15 30 50 per page
1 2 3
4
5
48