Closed ssipos90 closed 5 years ago
IDK if this is a plugin error or a pug compiler error, but it seems more linked to the watcher...
@ssipos90 Thanks for the report. I haven't been able to reproduce this issue. I can replicate the error but the watcher recovers fine after correcting.
My guess is this issue originates somewhere between docker and Webpack.
This is an unrelated question, but I'm actually kind of curious about the use case of running docker with Vue on the front-end. I've only used it with back-ends like Express and full-stack frameworks like Rails. Yarn is pretty good at doing a proper lock file these days and any CI can initiate a build script.
Getting back on track, since I'm NOT able to reproduce this, do you by chance have a public repo or at least docker-file (and docker-compose file) you can share and I'll have a go at debugging it? This might not be something I can fix with this plugin but I hate to close the issue until I can confirm for sure.
Let me know, thanks!
There you go:
version: '3.7'
services:
front:
image: node:10-alpine
command: ["npm", "run", "serve", "--", "--port=8080", "--host=0.0.0.0"] # vue-cli-service serve
port:
- 8080:8080
working_dir: /home/node/app
volumes:
- ./vue/project/path:/home/node/app
IMO, it's probably not from your plugin, but pug or vue-pug something, because errors in .vue files do recover fine.
Although, I can't reproduce it now anymore, but I have updated my NPM packages recently. Let me check what I've changed in GIT and get back to you.
{
...
- "vue-template-compiler": "^2.5.22",
- "vuetify-loader": "^1.1.1"
+ "vue-template-compiler": "^2.6.6",
+ "vuetify-loader": "^1.2.1"
...
}
Also I did an npm audit fix
which bumped everything so I guess it's been fixed somewhere in the black hole (node_modules
).
Don't get me wrong, I actually tried debugging the code, but couldn't manage to localize it because async stuff happens.
glad you were able to solve this btw. Probably a short-lived bug in one of those packages then. Maybe only showed up with pug too. I'm going to close this issue in that case. Let me know if you have any more issues.
Hi,
I've been really enjoying this plugin but this glitch keeps nagging my workflow. From time to time, I make a syntax error (various reasons) and the compiler stops watching. I'm running
node:10-alpine
docker image on the latest vue ... stack.For example, I was building this template for a spinner loader thing and my IDE auto-completed
indeterminate
with an=
, from the development flow, I hit alt-tab, IDE saves, watcher compiles and:And the watcher hangs. I need to restart the docker container which means I need to C^c, run
docker-compose restart front
,docker-compose logs -f front
and wait for the compilation (thanks to Webpack4 it's significantly less). Sometimes the socket doesn't reconnect and I need to refresh... 20 times per day :(Thanks!