Recently, I started a new Vue project that wasn't very populated. When I run the command below, everything runs smoothly...
npm run serve
However, as soon as I make a small change in my project and hit CTRL+S, the Vue instance is rebuilt and strange errors start popping up, like this one:
error: Parsing error: The keyword 'import' is reserved at src/main.js:1:1:
> 1 | import Vue from 'vue'
Whenever this happens, if I quit the application and then restart it using npm run serve
, it goes back to working fine.
Can anyone help me figure out what's going wrong here?