-
Notifications
You must be signed in to change notification settings - Fork 4.7k
VuePress cannot coexist with Vue CLI generated app? #1807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
related here too #1753 |
@ulivz Could use your insight on this? @f3ltron and I took a look and we think it's coming from |
This is a pretty big deal. I have an existing Vue project - which uses vue-cli, like a lot of Vue projects. I currently can't add VuePress to it until this is fixed - it's currently completely broken and produces no output. |
Thx dflock we are working on it but it's a tricky bug. |
The problem is when we are using him locally with link it work. Because the conflict vue cli service is not the same. As the link, link just what he need and resolve automatically conflicts by choosing one by default so hard to reproduce. edit 1: Then the probleme is coming from the Layout.vue called in GlobaLayout.vue depending on how it's called / create edit 2: It's look it's coming from vue-template-compiler... I tried with a local link a vue-cli-service and delete one by one link inside vue-cli-service and when i delete vue-template-compiler it's working... I am a bit done right now i will come back later on it. I found in vue it is using core-js 3 i dont know if it's related i am a bit lost actually but it's look's like continue on vue-template-compiler |
@f3ltron Seems that it's caused by #1685. If we can't find an easy way to fix this issue, consider reverting that PR for hotfix? As this is really a critical issue. BTW, my workaround is to downgrade "dependencies": {
"@vuepress/core": "1.0.2",
"vuepress": "1.0.2",
} |
PR #1771 should fix this. The problem, which the PR addresses, is that
I believe that an adjustment of the babel config like the following could help working around the issue
...which should tell babel that it's transpiling commonjs in that core-js folder and make it work. However I can't test this right now. Either way this is just a band-aid and has to be solved properly in the webpack config. |
I will try the solution you say @LinusBorg Thank's for all that stuff |
Ok it work for me and your explanation is awesome i will regroup all issues related in the pr and will merge it |
I am glad to say the new version of vuepress 1.0.4 fix the issue. I am closing the issue for now if you have the error again re open the issue ! Thank's all for all your work ! |
Thanks everyone! |
Bug report
Steps to reproduce
https://github.com/bencodezen/vuepress-coexist-error
yarn
yarn docs
to start VuePress instanceHow to See Success State
/docs
yarn
yarn docs
to start VuePress instanceWhat is expected?
User should be able to run VuePress in the same
package.json
file with an existing Vue CLI 3 app without any errors.What is actually happening?
Seems like there is a conflict with how something is being called in webpack.
Other relevant information
npx vuepress info
in my VuePress project:The text was updated successfully, but these errors were encountered: