Closed rafaellehmkuhl closed 1 year ago
what options did you select at prompt? just did fresh install on windows, no issue.
what options did you select at prompt? just did fresh install on windows, no issue.
All except .jsx support.
I've used the script yesterday and it worked without issues. Is there something I could have done that would cause this?
which prompt are you selecting during vue add vuetify
?
i did yarn create @vitejs/app my-beta-app --template vue
which doesn't provide any prompts, and then during vue add vuetify
i selected Vite Preview (Vuetify 3 + Vite)
.
its possible with the other templates, depending on what options are selected with the initial vue package creation that there are some conflict of dependencies or something isn't getting set up correctly
which prompt are you selecting during
vue add vuetify
? i didyarn create @vitejs/app my-beta-app --template vue
which doesn't provide any prompts, and then duringvue add vuetify
i selectedVite Preview (Vuetify 3 + Vite)
.its possible with the other templates, depending on what options are selected with the initial vue package creation that there are some conflict of dependencies or something isn't getting set up correctly
The problem is that vue add vuetify
don't prompt me 😅. Instead it returns this Plugin vue-cli-plugin-vuetify does not have a generator to invoke
message.
I assume the "generator" is the cli prompt that would ask me between Vuetify2, Vuetify3, etc.
One thing I've just remember, and I would like to add: I'm using yarn 3.2.1, and I'm pretty sure by the time the prompt worked, I was using yarn classic.
Edit: there's clearly something to do with Yarn, and probably with it's latest version.
Following worked (vuetify-cli prompt called):
npm init vue@3
cd project_name
npm install
vue add vuetify
Following don't work (vuetify-cli prompt not called and message Plugin vue-cli-plugin-vuetify does not have a generator to invoke
returned):
yarn create vue@3
cd project_name
yarn install
vue add vuetify
To make it clear,yarn --version
gives me 3.2.1
.
Confirmed it works properly with yarn 1.23.0
.
@MajesticPotatoe using yarn 1.23.0 I moved forward and begin to test other parts. One thing that also appears not to be working is the integration of Vuetify3 with Vitest. I used the Vite Preview (Vuetify3 + Vite)
option, and when running the unit test with yarn test:unit
I received the following:
➜ cockpit git:(initial-project-structure) ✗ yarn test:unit
yarn run v1.23.0-20220130.1630
warning package.json: No license field
warning ../../../package.json: No license field
$ vitest
DEV v0.9.4 /Users/rafael/Documents/project_name
❯ src/components/__tests__/CounterCard.spec.ts (0)
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
FAIL src/components/__tests__/CounterCard.spec.ts [ src/components/__tests__/CounterCard.spec.ts ]
TypeError: Unknown file extension ".css" for /Users/rafael/project_name/node_modules/vuetify/lib/components/VBtn/VBtn.css
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
Test Files 1 failed (1)
Tests no tests
Time 705ms (in thread 0ms, Infinity%)
FAIL Tests failed. Watching for file changes...
press h to show help, press q to quit
In this case, the CounterCard
component is a bare component with a <v-btn>
, but the problem ("unknown file extension '.css'") happens when using any Vuetify component.
Edit: solution for this error can be found here.
Environment
Vuetify Version: 3.0.0-beta.1 Vue Version: 3.2.33 Browsers: Edge 101.0.1210.39 OS: Mac OS 10.15.7
Steps to reproduce
Try to follow instructions on this page: https://next.vuetifyjs.com/en/getting-started/installation/
npm init @vitejs/app my-beta-app -- --template vue
vue add vuetify
Expected Behavior
Vuetify to be installed
Actual Behavior
This happens using any of the following project init scripts:
npm init @vitejs/app my-beta-app -- --template vue
yarn create @vitejs/app my-beta-app --template vue
npm init vue@latest
npm create vite@latest my-vue-app -- --template vue
yarn create vite my-vue-app --template vue
Reproduction Link
https://codepen.io/rafaellehmkuhl/pen/NWybpQM