hashgraph / hedera-sdk-js

Hedera™ Hashgraph SDK for JavaScript/TypeScript
https://docs.hedera.com/guides/docs/sdks
Apache License 2.0
277 stars 146 forks source link

SDK is not working on agular cli 14.0.0 version #1153

Closed SevenbitsHarshad closed 2 years ago

SevenbitsHarshad commented 2 years ago

Description

Node Version: 14.19.3 Angular CLI: 13.0.4 SDK version: 2.15.0

It is not working with type script and angular version

Steps to reproduce

Node Version: 14.19.3 Angular CLI: 13.0.4 SDK version: 2.15.0

It is not working

Additional context

173510105-5dae910a-58c5-4f29-9c24-64fd4c423919

Hedera network

other

Version

2.15.0

Operating system

No response

janaakhterov commented 2 years ago

I think I'm going to need a little bit more context. I tried to reproduce your issue with no luck. This is what I did:

ng new my-first-project
npm add @hashgraph/sdk
# Edit src/app/app.component.ts
#
# Add to the top of the file
# import { PrivateKey } from "@hashgraph/sdk";
#
# Update the title to generate a private key
# title = PrivateKey.generate();
ng serve

image

Closing as I am not able to reproduce, but can re-open if more context is provided that allows me to reproduce the issue.

SevenbitsHarshad commented 2 years ago

I think I'm going to need a little bit more context. I tried to reproduce your issue with no luck. This is what I did:

ng new my-first-project
npm add @hashgraph/sdk
# Edit src/app/app.component.ts
#
# Add to the top of the file
# import { PrivateKey } from "@hashgraph/sdk";
#
# Update the title to generate a private key
# title = PrivateKey.generate();
ng serve

image

Closing as I am not able to reproduce, but can re-open if more context is provided that allows me to reproduce the issue.

please share your node version and angular version details

SevenbitsHarshad commented 2 years ago

I think I'm going to need a little bit more context. I tried to reproduce your issue with no luck. This is what I did:

ng new my-first-project
npm add @hashgraph/sdk
# Edit src/app/app.component.ts
#
# Add to the top of the file
# import { PrivateKey } from "@hashgraph/sdk";
#
# Update the title to generate a private key
# title = PrivateKey.generate();
ng serve

image Closing as I am not able to reproduce, but can re-open if more context is provided that allows me to reproduce the issue.

please share your node version and angular version details

please import the below namespace and check

import type { AccountId, Client } from "@hashgraph/sdk";