-
Notifications
You must be signed in to change notification settings - Fork 22
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
Defining an alias without a string crashes nuxt start with "Unexpected token '.'" #76
Comments
@jrutila that's the expected behaviour, you don't need to use almost any Vuetify imports, the module will include the aliases for you. |
Do you mean this is not a bug? I was following the example from Vuetify for the config of aliases and got this cryptic message. Some would want to use the typed version in these cases instead of string. At least the error message should then be something like: "Aliases can be defined only using stringed component names". |
I read them, now, thank you. I got confused that the I see that you already have exceptions to blueprints here: https://vuetify-nuxt-module.netlify.app/guide/#vuetify-blueprints. I can suggest an edit for that to mention that the aliases work differently from Vuetify. |
Oh, and I wrote the bug for the |
Here's the PR for the doc change: #77 |
Reproduce:
Define an alias in following way in
vuetify.config.mts
:Run
pnpm run dev
. Following error happens:Workaround:
Define the aliases by only using string (like the VChip in the example code).
The example in Vuetify docs defines aliases without strings: https://vuetifyjs.com/en/features/aliasing/
This is a Stackblitz that reproduces the bug: https://stackblitz.com/edit/github-x3p2de?file=playground%2Fvuetify.config.mts
The text was updated successfully, but these errors were encountered: