The problem
When using ionic cap run web -l --ssl
the project loads and runs just fine; however any changes made in VS Code do not cause a live-reload to occur.
Versions
Windows 10: v2004
WSL: 2
VS Code: 1.48.2
@ionic/angular: ^5.3.2
@ionic-native/core: ^5.28.0
cordova: ^9.0.0
Efforts made
- Running
ionic cap run web -l --ssl --host=0.0.0.0
- Adding
"server": { "url": "https://localhost:8100" }
to capacitor.config.json - Creating a new project
- Moving the project to
~/
- Increasing watchers:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p && sudo sysctl --system
- Deleting
/www
- Updating all npm libs to the latest version
- Running
ionic cordova run browser -l
- Running
npx cap serve
- Changing
"webDir": "www"
to"webDir": "src"
in capacitor.config.json
I haven’t had any success with the above and am currently stuck. Any ideas?