obsidian-dataview: [BUG]: Broken API (0.5.58 → 0.5.64) : ERROR TS2307 - Cannot find module 'xxx' or its corresponding type declarations
What happened?
When updating in my own plugin the dataview package to 0.5.59, TS can’t found any declaration for Obsidian-dataview.
Translation:
Try
npm i --save-dev @types/obsidian-dataviewif it exists or add a new declaration (.d.ts) file containing `declare module ‘obsidian-dataview’; ERROR TS7016 Could not find a declaration file for module 'obsidian-dataview" […]
Spotted that the two last version doesn’t have the main.d.ts file:
Comparison to 0.5.56, where libs contains everything.
DQL
/
JS
No response
Dataview Version
0.5.58 - 0.5.56
Obsidian Version
Not relevant
OS
Windows
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 16 (2 by maintainers)
My methods to fix this on my side: https://github.com/ObsidianPublisher/obsidian-github-publisher/blob/e2e3738541d0188ae0f90397837395ee0c8f2a0b/tsconfig.json#L4-L10
I’ve got some workarounds
tsconfig.jsonRegarding
LocalForageissue, it’s solved by adding somewhere in your code