Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

lisk-client not usable in a React Typescript application (v6.beta) #8438

Closed
Tracked by #7226
tomploem opened this issue May 10, 2023 · 2 comments
Closed
Tracked by #7226

lisk-client not usable in a React Typescript application (v6.beta) #8438

tomploem opened this issue May 10, 2023 · 2 comments
Assignees
Milestone

Comments

@tomploem
Copy link

Expected behavior

In the example documentation it is mentioned that @liskhq/lisk-client/browser can be used to integrate a SDK project into your frontend.

Actual behavior

When using Typescript, this import does not work and can't be resolved to the dist-browser folder

Steps to reproduce

  1. Install the hello_world demo app
  2. Change the "@liskhq/lisk-client": "^6.0.0-alpha.14" to the latest beta flag
  3. Add Typescript to the project (tsconfig.json & dependencies)
  4. Run the application

Which version(s) does this affect? (Environment, OS, etc...)

  • OS Venture 13.1
@tomploem
Copy link
Author

@shuse2 would it be possible to investigate this issue? I want to prepare my NPM package lisk-react for betanet but cant seem to integrate @liskhq/lisk-client (v6 beta) into a frontend Typescript project

@mosmartin
Copy link
Contributor

mosmartin commented Jun 7, 2023

Hi @tomploem, I've tried to reproduce the issue using the steps you provided and it is working. I

  1. updated the lisk-client lib to "@liskhq/lisk-client": "^6.0.0-beta.1"
  2. installed ts and other dependencies
  3. initialized tsconfig

and tested the demo app and is working as expected.

The lisk-client on thedevelopment branch as well was updated to the latest beta - ^6.0.0-beta.1 and works as expected.

I'd be happy to assist further on this issue.

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

No branches or pull requests

3 participants