Closed eneim closed 7 years ago
Please wait for 0.8.6.
For now you can try go into extension folder, fire up node, and try require('vue')
It should not get any vue result. Otherwise some modules are wrongly required.
@HerringtonDarkholme Got it. Hopefully 0.8.6 or few next major release will completely fix this issue. Thanks for the beautiful extension.
The confusion comes from the problem was fixed, reintroduced when merging a PR, and fixed again now...Sorry for the bad experience.
I released 0.8.6 which should fix the problem.
will completely fix this issue
Yep, we don't use vue-template-compiler
anymore so this issue should be completely gone.
@octref do you have any idea why vue is wrongly required? We don't have it in package.json. So if it is wrongly required, it might be a bug of vscode.
@eneim Can you try require('vue')
inside the extension folder?
I'm not 100% sure, but my guess is this has something to do with the globally installed vue-cli
, which includes a version of vue
and vue-template-compiler
.
Just checked, latest vue-cli@2.8.2
has vue@2.3.3
. I don't know the exact reason, though.
@HerringtonDarkholme I go directly into extension client folder, from client folder, I run npm install vue
(which will add vue into the node_modules) and it works for me.
Well, let's just close this. Since vue-template-compiler is deliberately designed for small foot-print for browser usage. It is definitely not for editor usage which requires AST traversal, error recovery, AST node location and so on.
Removing it is the best choice.
Problem
Since this is quite common error (base on my searching result), I will just put the log as below:
Reproducible Case
I have a vue app NOT using typescript, with be dependencies looks like this
Everytime I open vscode it will crash the server after a few seconds (time for some retries I guess).
I search around and see the same thing for older version as well. But neither of them seems to have a final solution. I have already go into extension folder, remove node_modules and run
npm install
against it but having no luck.All dependencies suppose to be installed with latest available version, so vue and vue-template-compiler are all 2.3.4 (I also run
npm ls
to double check).Please help.