Skip to content
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

How to build the zotlit? #319

Open
iromise opened this issue Mar 11, 2024 · 4 comments
Open

How to build the zotlit? #319

iromise opened this issue Mar 11, 2024 · 4 comments

Comments

@iromise
Copy link

iromise commented Mar 11, 2024

你好,我想在 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
Copy link

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
Copy link
Author

iromise commented Mar 11, 2024

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
Copy link

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

@iromise
Copy link
Author

iromise commented Mar 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants