You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a Vue Cli project using TypeScript and the Quasar Plugin.
After installing the plugin I get this TypeScript error in main.ts:
Could not find a declaration file for module './quasar-user-options'. '/Users/my-user-account/Dev/my-project/src/quasar-user-options.js' implicitly has an 'any' type.ts (7016)
This error is showing because the quasar-user-options.js file should actually be quasar-user-options.ts.
After changing the file extension from .js to .ts the error goes away.
To Reproduce
Steps to reproduce the behavior:
Create a Vue Cli project with TypeScript support: vue create hello-world
Add the Quasar plugin: vue add quasar
Open main.ts file
See error on the 4th line for "./quasar-user-options";`
Expected behavior
There should be no error.
Possible solution
The plugin could detect if the Vue Cli project is using TypeScript, and if so create quasar-user-options.ts not quasar-user-options.js.
If that is not possible there should at least be a note about this manually changing this in the docs.
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a Vue Cli project using TypeScript and the Quasar Plugin.
After installing the plugin I get this TypeScript error in
main.ts
:This error is showing because the
quasar-user-options.js
file should actually bequasar-user-options.ts
.After changing the file extension from
.js
to.ts
the error goes away.To Reproduce
Steps to reproduce the behavior:
vue create hello-world
vue add quasar
main.ts
fileExpected behavior
There should be no error.
Possible solution
The plugin could detect if the Vue Cli project is using TypeScript, and if so create
quasar-user-options.ts
notquasar-user-options.js
.If that is not possible there should at least be a note about this manually changing this in the docs.
The text was updated successfully, but these errors were encountered: