PKM-er / obsidian-zotlit

A third-party project that aims to facilitate the integration between Obsidian.md and Zotero, by providing a set of community plugins for both Obsidian and Zotero.
https://zotlit.aidenlx.top
MIT License
647 stars 29 forks source link

How to build the zotlit? #319

Open iromise opened 6 months ago

iromise commented 6 months ago

你好,我想在 zolit 中添加一些功能,但一直没有办法编译成功。大概做了以下尝试

  1. 直接递归 clone 仓库,发现 ophidian-lib-core 不存在。
  2. 选择手动 clone async-2 分支,并尝试,还是不行。
  3. 在 async-2 的基础上,rebase 了 ophidian-lib-core,仍然不成功,提示了
src/plugin-settings.ts(83,45): error TS2345: Argument of type 'Plugin' is not assignable to parameter of type 'PComponent'.

根据这样的提示一步步修改代码,比如删除接口,修改函数返回值等,但还是不太行。

想问一下,这个插件该如何编译呢?谢谢!

theotheo commented 6 months ago

I've faced the similar problems when adding a simplest feature. But at the end I've built development version. Did you use rush tool to built?

iromise commented 6 months ago

yeah, I use rush to build it. I am also interested to build some workflow between zotero and obsidian. So I choose it to add some functionalities.

theotheo commented 6 months ago

Maybe you can try to turn off type checking for the error with "@ts-ignore"?

iromise commented 6 months ago

@theotheo Thanks, I will have a try later in this week!