All Questions
716
questions
0
votes
0
answers
142
views
Webpack build stuck on middle of creation of bundle
I use webpack to build and tun my app locally. I use babel, ts loader, sass loader. I have pretty big codebase. Couple days ago I found that webpack cant build my app. It stuck on bundling job on 48% ...
0
votes
0
answers
171
views
Webpack dev server with flask html templates
I am trying to use Flask to send an html view (template) and React for the front end, but I am having issues setting up the webpack-dev-server on the front end. My confusion is, my Flask app is ...
0
votes
0
answers
30
views
how to display a image outside the project using webpack (REACT)
"I have a problem: I can't display an image that is located on a different disk than my project, and Webpack doesn't seem to like it. Moving the elements into my development project is not an ...
1
vote
0
answers
1k
views
How to run a react application with webpack in docker?
I am creating a react app with webpack for bundling. And I need to create image of react application using Docker.
Here is the package.json.
{
"name": "simple-weather-app",
&...
1
vote
2
answers
347
views
react-scripts start not picking up js changes
I have a react application which I bootstrapped using create-react-app. The application runs in a docker container, and has been deployed in a subdomain. Let's say the domain is http://mycompany.com , ...
0
votes
1
answer
133
views
How to resolve Webpack server error in React.js
I am trying to resolve this error but I dont know what to do. I have intalled the Babel extension then started gettin this error and then I deleted that. However, I am getting error now also so maybe ...
3
votes
2
answers
3k
views
HookWebpackError: Cannot read properties of undefined (reading 'e') -- inner error -- TypeError: Cannot read properties of undefined (reading 'e')
I use npx-create-react-app years, but now i can't build with run npm run build.
Today still is work.
I update node and npm. Clear the cahce with: npm cache clean --force
None of the projects work. ...
1
vote
0
answers
134
views
webpack-dev-server not showing content in localhost
webpack-dev-server not showing content in localhost. Here are some files and the output screenshots for better understanding, Please help me to find the solution. I have tried many ways to fix it but ...
0
votes
1
answer
501
views
"Cannot find module 'webpack/hot/log.js'" error when starting React app
I'm trying to run my ReactJS app locally using the npm start command. After some time, http://localhost:3000/ opens in Chrome, but nothing appears, only a blank white screen.
I checked the console and ...
0
votes
1
answer
3k
views
React Fast Refresh doesn't work with Webpack 5
When I use React Fast Refresh with Webpack 5, the whole page is refreshed instead of just the component that changed.
EDIT the issue was caused by Webpack configuration, a proper configuration to fix ...
1
vote
1
answer
457
views
How to setup loader for bootstrap for webpack ? or is there any better alternative than webpack?
I am stuck in adding css-loader for my bootstrap to the webpack, help please.
My file structure:
style.scss
// Import all of Bootstrap's CSS
@import "~bootstrap/scss/bootstrap";
index.js
...
3
votes
1
answer
1k
views
Webpack not able to find public folder on Production Build
My current folder structure
- app
- build
- public
- simulation
- index.html
- server
I have a .html file in the public > simulation folder.
and I am opening this HTML file in an iFrame ...
0
votes
1
answer
262
views
Image rendering in React with webpack
I'm trying to render the images on my React app, but I get "failed to load resource..404 not found" in browser.
As mentionded in App.js file, relative path is not working but importing the ...
1
vote
0
answers
264
views
How to enable Hot Module Replacement (HMR) for a directory outside of src in a React app?
I have a React app that uses an external shared directory at the top level, shared-js, that is located outside of the src directory of my app. I want to enable Hot Module Replacement (HMR) for this ...
0
votes
1
answer
117
views
Why if I run the build command I don't have a server created?
There are two commands
"dev": "webpack serve --hot --mode development --config ./configs/webpack.config.ts",
"build": "webpack --mode production --config ./configs/...