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.
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.jsfile should actually bequasar-user-options.ts.After changing the file extension from
.jsto.tsthe error goes away.To Reproduce
Steps to reproduce the behavior:
vue create hello-worldvue add quasarmain.tsfileExpected 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.tsnotquasar-user-options.js.If that is not possible there should at least be a note about this manually changing this in the docs.