obsidian-zotlit icon indicating copy to clipboard operation
obsidian-zotlit copied to clipboard

How to build the zotlit?

Open iromise opened this issue 11 months ago • 4 comments

你好,我想在 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'.

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

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

iromise avatar Mar 11 '24 04:03 iromise

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?

theotheo avatar Mar 11 '24 14:03 theotheo

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.

iromise avatar Mar 11 '24 15:03 iromise

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

theotheo avatar Mar 11 '24 16:03 theotheo

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

iromise avatar Mar 13 '24 05:03 iromise