-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Could not find a declaration file for module after upgrading to 3.0.1 #38
Comments
Hey there @mv-go, could you check if the problem happens also on a fresh install? Do you have the time to produce a repro? |
Hey! Will try today, yup. |
hey @IlCallo , sorry for a late reply! Unfortunately, I was not able to reproduce the issue on a fresh install. Which only has me bugging, what is going wrong in my larger project. Anyhow, since I can not reliably reproduce the issue, I guess this thread can be closed :( |
Ooops, never mind, I think I found it. What helped is removing a bunch of (I think) unnecessary code from my project's Anyhow, steps that allowed me to reproduce.
Not sure, why the above config would break the build, but here I am. Remove the aforementioned Webpack config (except for @IlCallo once again, thank you for your help. If you have any idea as to why this is happening - please spare a couple of minutes to educate me on the issue :) Kind regards |
Describe the bug
I started getting the following error during both of
dev
andbuild
runs. The error appears in every.ts
file, where I have anything imported from'quasar'
. So in my case -uid
andNotify
.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
The text was updated successfully, but these errors were encountered: