be able to do bit init
The command fails with the following errors:
``` Failed loading the driver for javascript. Got an error from the driver: Error:
Vue packages version mismatch:
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
```
I m not using Vue at all in my project. any idea?
bit cc solved it
Same here yet:
Failed loading the driver for javascript. Got an error from the driver: Error:
Vue packages version mismatch:
- [email protected]
- [email protected]
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
bit cc didn't solve, and the dependencies already are with the same version
Bit version: 13.0.4
Node version: 10.6.0
yarn version: 1.9.4
Platform: Arch Linux
@ghaiat can you reopen the issue?
@fsblemos
I was able to reproduce the issue.
It seems that the reason for this conflict is that you installed bit-bin locally instead of globally.
Can you try to remove the local install and reinstall bit-bin globally?
I'm reopening the issue and waiting for your response.
Thanks @GiladShoham!
bit-bin was global already, but based on your comment I removed the global vue and bit init worked!
After running bit init, I installed vue globally again and still working.
I think the issue can be closed.
Thanks!
Hey, just want to report in case it can help someone.
I ran into this issue as well.
I removed the global packages vue-cli and quasar-cli using yarn but I don't know if it solved the initial issue because after removing bit-bin and reinstalling it using yarn bit init (and any bit command) was failing with a yarn error:
ENOENT: no such file or directory, open '/home/.../.config/yarn/global/node_modules/brace-expansion/node_modules/balanced-match/index.js'
I removed bit-bin again using yarn then reinstalled it with npm and now it works.
Happy coding folks
Bit version: 13.0.4
Node version: 11.5.0
yarn version: 1.12.3
npm version: 6.5.0
Platform: Arch Linux
Re-importing vue compiler solved the mismatch for me.
$bit import bit.envs/bundlers/vue -c
Most helpful comment
Thanks @GiladShoham!
bit-binwas global already, but based on your comment I removed the globalvueandbit initworked!After running
bit init, I installedvueglobally again and still working.I think the issue can be closed.
Thanks!