-
-
Notifications
You must be signed in to change notification settings - Fork 113
[Bug Report] Installation fails when src directory is not found #39
Comments
My error has a relationship? Versions and Environmentbabel/polyfill: 7.0.0-rc.1 Steps to reproduceQuick start: https://vuetifyjs.com/en/getting-started/quick-start Actual Behavior |
@eder-toledo not enough information in your comment to say anything about your issue - i don't know what did you do before running |
@Uninen can you reproduce your issue with 0.2.0 version of vuetify plugin? I think it could handle the entry file properly, the problem with the location of components may still exist though |
My reported versions were wrong as I either read them wrong or vue-cli does some magic with package.json; used most recent versions (as of couple of days ago) of everything. I created a clean project to reproduce this ( https://gitlab.com/uninen/vuetify-cli-bug ) and the installer didn't fail but instead wrote everything in src directory (it may have failed in my other project because I have src dir there for other stuff). I think this is semi-OK as it can't know better. I only opened this ticket because the installer crashed and this seems not to be the case; feel free to close this ticket. |
The plugin was updated just after you've reported the issue, and in 0.2.0 we've improved the way of resolving the entry file. |
Hmm. with the repo above (where entry file points to But yes, it's a fair assumption to write them in the same folder as the entry file. |
Only resolving of the entry file has been fixed, templates are still being saved in the |
@Uninen I didn't look into your repro before, but I can see now that you're using vue cli 2.X in you project. In 3.0 changing the src folder is not so easy: vuejs/vue-cli#1134 (comment) (and previous comments), and atm I'm not sure if we want to support 2.X |
The proper repro project is here, it's done with the latest cli v3: https://gitlab.com/uninen/vuetify-cli-bug Everything else in the project works ok, but hadn't seen that "you're on your own" comment before -- this is clearly not documented. But feel free to close this ticket if it's out of scope (not officially supported by vue-cli) anyways. |
Versions and Environment
Vuetify: 1.0.19
Vue: 2.5.17
Browsers: Chrome 69.0.3497.92
OS: Mac OS 10.13.5
Steps to reproduce
I tried to install Vuetify in a project where the 'src' directory has been renamed to 'vue' and the installation fails when running completion hooks: "Error: ENOENT: no such file or directory, open '/code/src/main.js'"
Expected Behavior
I'm not sure if it's reasonable to expect people to move things around, but at least the installer could just fail gracefully and either ask for the new directory name or just say that "didn't find src directory in default place, skipped writing of pre-made templates".
Actual Behavior
Error: ENOENT: no such file or directory, open '/code/src/main.js'
Reproduction Link
https://codesandbox.io/s/z21zlv53jx
The text was updated successfully, but these errors were encountered: