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

Possible Compatibility Issue with React #69

Open
raymondwjang opened this issue Oct 24, 2024 · 2 comments
Open

Possible Compatibility Issue with React #69

raymondwjang opened this issue Oct 24, 2024 · 2 comments

Comments

@raymondwjang
Copy link

Hello,

I'd love to incorporate this package into my project, but I'm having trouble implementing it. I installed it with npm install zotero-plugin-toolkit, confirmed its version ([email protected]), and imported it like below:

import { ZoteroToolkit } from "zotero-plugin-toolkit";

Now, when I try to build the package with the import statement, I'm met with a long list of type incompatibility error stack trace that involves both react and zotero-plugin-toolkit.

This issue disappears if the zotero-plugin-toolkit import statement is removed.

Would it be possible to get support on this?

My react version is 18.3.1.

@windingwind
Copy link
Owner

Hi, thanks for reporting this. Could you please provide a git repo or a GitHub workspace that can reproduce this?

@windingwind
Copy link
Owner

windingwind commented Oct 25, 2024

Errors like error TS2304: Cannot find name 'WeakRef'. might indicate that you are on a lower version of the TS server, or you have not configured it as expected. Could try:

  1. Upgrade the TS server
  2. Check the current TS server (workspace v.s. global, if you are using IDE like VSCode)
  3. Check the current tsconfig of the project, e.g. compilerOptions > lib.

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