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

SDK is not compatible with default version of React #56

Open
IgorShadurin opened this issue Dec 13, 2024 · 1 comment
Open

SDK is not compatible with default version of React #56

IgorShadurin opened this issue Dec 13, 2024 · 1 comment

Comments

@IgorShadurin
Copy link
Member

The TypeScript version (^5.7.2) required by the SDK is incompatible with the default version of React when using react-scripts. Updating TypeScript to match the SDK requirements causes conflicts with react-scripts.

Additionally, the SDK uses permissionless.js, which uses higher version of Typescript. It seems like permissionless.js should be minified or optimized to prevent such issues.

Steps to reproduce:

  1. Create a React app using create-react-app.
  2. Install the SDK.
  3. Attempt to run or build the project.

Expected behavior:
The SDK should work seamlessly with the default React and react-scripts setup.

Actual behavior:

  • TypeScript version conflicts occur.
  • Compilations errors are thrown by permissionless.js.

Suggested fixes:

  • Adjust the SDK to support the default TypeScript version compatible with react-scripts.
  • Optimize or minify permissionless.js to avoid errors.
@IgorShadurin
Copy link
Member Author

Use Vite

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

1 participant