Closed mhy-beta closed 3 hours ago
:active-class="text-orange"
is wrong, you shouldn't use the :
prefix which is a shortcut for v-bind:
, which binds to a variable. But, text-orange
is not a variable, it's just text. So, use active-class"text-orange"
as shown in the docs. I also suggest checking out the Vue docs.
As for inset-level
, as mentioned in the docs, it should be a number. inset-level=5
is equal to inset-level="5"
which binds a string. If you do :inset-level="5"
, it would be bound as a number and work correctly.
What happened?
I create a new quasar project. I add a vertical separator to index.vue. Then I add a few more to create a menu with .
However, I encounter a typescript type error every time.
ERROR(vue-tsc) Type 'string' is not assignable to type 'number'.
What did you expect to happen?
Works without TypeScript errors.
Reproduction URL
https://codesandbox.io/p/devbox/github/quasarframework/quasar-codesandbox/tree/master
How to reproduce?
Code screen:
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
TypeScript Support
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
No response
Additional context
I am also talking about WebStorm. I am also constantly getting the volar-ts error.
I also tried to update the steps with "codesandbox" and vsCode plugin, but it does not work even though I forked Quasar. UI gives an error in compilation. So codesandbox don't work.
I tested VS Code version: Version: 1.93.1 (user setup) Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631