Category : webpack-dev-server

I don’t know what’s going on, for all the help pages I read, I just can’t seem to get webpack-dev-server HRM to work on my node:16.6.1-alpine3.14 on Windows10 WSL2. It didn’t rebuild after I change the source code. I have followed, https://github.com/microsoft/WSL/issues/4417 CHOKIDAR_USEPOLLING sysctl -w fs.inotify.max_user_watches=524288 (this gives me file read-only error, and I tried ..

Read more

Basically what I’m trying to achieve is to have my app running on local.myapp.com instead of localhost. Notice: On the host machine inside /etc/hosts I have 127.0.0.1 local.myapp.com entry and my docker-compose configuration has ports: 80:80. When I run this command on the host machine: yarn serve –port=80 –host=local.myapp.com everything works and I can access ..

Read more

I build a SPA react-app to deploy in docker container. I have dependency issues with those packages: "webpack": "^5.9.0", "webpack-cli": "^4.2.0", "webpack-dev-server": "^3.11.0" with this set up i get this error: Error: Cannot find module ‘webpack-cli/bin/config-yargs’. since webpack-cli recently was upgraded to v4. this error occurs. github-issue . So, I used "webpack-cli": "^3.3.12". but this ..

Read more

I have looked at various solutions to no avail. Testing webpack-dev-server on WSL 2 works fine; when I update the src/main.js file the browser updates however when inside of a docker container again running within WSL 2, the browser does not automatically update on saving changes, however the content does update when I manually refresh ..

Read more