Closed Anton-Plagemann closed 1 month ago
Check if you can reproduce the issue with other dependencies. I encountered the same problem when using the new version of peimvue, and I found a related issue at that time.
Seems like this is caused by a change, how libraries augment the vue
-type. See here for the reason and a temporary fix that worked for me.
Closing this issue, as it seems there's nothing wrong with unimport
😊
Environment
Project info:
Build Modules: -
Reproduction
Let me know if you need a reproduction repo.
Describe the bug
Starting from unimport 3.10.0 I get type errors like these all over my nuxt app (see log section for a full example output):
I tracked it down to the following code change (Line 84 to 91): https://github.com/unjs/unimport/compare/v3.9.1...v3.10.0#diff-ff328eec8d9ee3a30a4b685a1fe08482bc3edf274cba60669ce7869375d6d5e9
Reversing it make the errors disappear (using 3.9.1 does so too). Maybe it was removed by accident? The issue emerged, when I updated @nuxt/eslint from 0.4.0 to 0.5.0 which also updated unimport from 3.9.1 to 3.10.0.
Additional context
No response
Logs