Description
Describe the bug
I started getting the following error during both of dev
and build
runs. The error appears in every .ts
file, where I have anything imported from 'quasar'
. So in my case - uid
and Notify
.
TS7016: Could not find a declaration file for module 'quasar/src/utils/uid.js'. '/path/to/app/node_modules/quasar/src/utils/uid.js' implicitly has an 'any' type.
To Reproduce
Error only started appearing after upgrading from 2.. to 3.0.1.
I have followed the upgrade guide as posted in release notes.
The rest of the code is otherwise unchanged.
I import from quasar with the following statement from docs, e.g. import { uid } from 'quasar'
.
Expected behavior
Requested helpers being imported and not to throw any errors during compilation.
Platform (please complete the following information):
Node: 14.3.1
NPM: 6.14.8
vue-cli-plugin-quasar: 3.0.1
quasar: 1.14.1
@quasar/extras: 1.9.8
Additional context
The interesting bit is that the IDE (VSC) highlights uid
function signature as expected () => string
, despite the above mentioned error.
Moreover, from time to time, with no apparent reason, the dev
(vue-cli-service serve
) command seems to compile just fine without any errors.
I'm still hesitating to post this issue, however I'm completely puzzled as to why such would be happening. I will gladly provide any additional info if needed, yet I'm not sure where to start looking for potential cause of this problem.
Kind regards