Replies: 4 comments 5 replies
-
Hi. Can you provide more details on your setup? Is this a TS node project or a frontend project (e.g. with React)? |
Beta Was this translation helpful? Give feedback.
0 replies
-
[image: image.png]
it is a node project. I took the code directly from the github
…On Tue, Feb 15, 2022 at 4:20 AM janniks ***@***.***> wrote:
Hi. Can you provide more details on your setup? Is this a TS node project
or a frontend project (e.g. with React)?
—
Reply to this email directly, view it on GitHub
<#1186 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQPTAADC5CIHCNTILN6HHDU3ILGHANCNFSM5ONHJA7A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Phil
|
Beta Was this translation helpful? Give feedback.
4 replies
-
node version: v16.13.1
…On Wed, Feb 16, 2022 at 8:06 AM janniks ***@***.***> wrote:
Running node -v will output the used node version into the terminal.
Also try using the latest version of the stacks.js packages. e.g.
@stacks/transactions@^3.2.0
—
Reply to this email directly, view it on GitHub
<#1186 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQPTAAYAQ4BO26NSLBUAELU3OOONANCNFSM5ONHJA7A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Phil
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I updated by running
npm update @stacks/transactions@^3.2.0
I get the below two errors now. The second I was getting before also. Can
you tell me how to fix this?
from my tsconfig => "target": "es2020"
tsc Scripts\shell.ts
Scripts/shell.ts:18:29 - error TS2737: BigInt literals are not available
when targeting lower
than ES2020.,
18 const postConditionAmount = 1000000n;
~~~~~~~~
Scripts/shell.ts:35:21 - error TS1378: Top-level 'await' expressions are
only allowed when the 'module' option is set to 'es2022', 'esnext',
'system', or 'nodenext', and the 'target' option is set to 'es2017' or
higher.
35 const transaction = await makeContractCall(txOptions);
~~~~~
Scripts/shell.ts:40:27 - error TS1378: Top-level 'await' expressions are
only allowed when the 'module' option is set to 'es2022', 'esnext',
'system', or 'nodenext', and the 'target' option is set to 'es2017' or
higher.
40 const broadcastResponse = await broadcastTransaction(transaction,
network);
~~~~~
…On Wed, Feb 16, 2022 at 10:21 AM Phil Kelsey ***@***.***> wrote:
node version: v16.13.1
On Wed, Feb 16, 2022 at 8:06 AM janniks ***@***.***> wrote:
> Running node -v will output the used node version into the terminal.
> Also try using the latest version of the stacks.js packages. e.g.
> @stacks/transactions@^3.2.0
>
> —
> Reply to this email directly, view it on GitHub
> <#1186 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABQPTAAYAQ4BO26NSLBUAELU3OOONANCNFSM5ONHJA7A>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
--
Phil
--
Phil
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting the following error with the Stacks.js when compiling tsc:
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
Can anyone offer any solutions? I am stuck. This is my post below
"https://stackoverflow.com/questions/71082270/error-ts1259-module-node-modules-types-bn-js-index-can-only-be-default
Beta Was this translation helpful? Give feedback.
All reactions