Closed scottadamsmith closed 5 years ago
Thank you for the repo, I will take look
I have a begining of a clue If you use yarn, it works. This error only happens with npm... grrr
https://github.com/webpack/webpack/issues/8656 ... seems we need to downgrade webpack until this is fixed...
I am going to downgrade the dependency of the plugin to @vue/cli@^3.0.0 This way you can use an older version of the cli, webpack and npm until the bug is fixed on npm.
What is wonderful is I can do something for you on vsg ;) !!!! \o/
I am going to update the version of acorn on vsg and this way we can avoid the npm bug. Will deliver a fix by tonight.
Wow, really appreciate it! Was able to start another clean app following instructions and everything is good. No locking versions or downgrades required. Thanks!
So while I was able to get the default app scenario to load, my actual app is still throwing the error due what appears to be the webpack ^4.29.0 dependency. Vue cli released v3.3.1 to temporarily roll back webpack (https://github.com/vuejs/vue-cli/commit/1af421ee74360b6831e2de0ba4f1f9cec1a5f6ca) to resolve the issue. Is this something that can be considered for vue-styleguidist as well?
When you update @vue/cli to 3.3.1 do you still have the issue?
I thought our direct dependency to acorn
saved us. it seems not at all...
I do. When I examine my package-lock I end up with a 4.28.x version from the CLI, but the 4.29.0 version remains from vue-styleguideist. I am assuming that webpack 4.29.0 has an acorn dep that exposes the NPM bug.
I was able to get past the error by deleting my package-lock, wiping node_modules, and installing again to regenerate package-lock. I'm not sure this will be a great option for stable projects, but given I just created this package a week ago and have not released the initial version, it was acceptable in my case. Thanks again for the responses and updates!
OK, great to hear can you still write a quick issue for vue-styleguidist. If I find the time it will remind me to deliver a version of it with a downgraded webpack.
Thanks
Le 27janv. 2019 à 20:51, Scott Smith notifications@github.com a écrit :
I was able to get past the error by deleting my package-lock, wiping node_modules, and installing again to regenerate package-lock. I'm not sure this will be a great option for stable projects, but given I just created this package a week ago and have not released the initial version, it was acceptable in my case. Thanks again for the responses and updates!
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/vue-styleguidist/vue-cli-plugin-styleguidist/issues/28#issuecomment-457983791, or mute the thread https://github.com/notifications/unsubscribe-auth/AFVVkRqMUurp7D-vg7BSY2bEtY9qXT_oks5vHmWbgaJpZM4aUbI7.
At first I thought it may have been something specific from within my app, so I setup a new repository and created an empty vue-cli app, installed the plugin, and attempted to run by following the instructions exactly.
Example: https://github.com/scottadamsmith/vue-cli-plugin-styleguidist-repro
Error output:
Please let me know if there is any other information I can provide or if you believe this is an issue on my end. Thanks!