babel-plugin-transform-async-to-promises
babel-plugin-transform-async-to-promises copied to clipboard
Error on generate-helpers-string.js
I'm currently trying to compile the package via webpack to be used on a web project with babel-standalone.
On the first run, while executing npm install
an error occurs, the output in the terminal is the following:
$ npm install
> [email protected] prepare
> tsc && node ./generate-helpers-string.js
async-to-promises.ts:2765:6 - error TS2322: Type '"var" | "let" | "const" | "using"' is not assignable to type '"var" | "let" | "const"'.
Type '"using"' is not assignable to type '"var" | "let" | "const"'.
2765 declarationKind: reusingExisting ? (reusingExisting.parent as VariableDeclaration).kind : "const",
~~~~~~~~~~~~~~~
async-to-promises.ts:333:2
333 declarationKind: "var" | "const" | "let";
~~~~~~~~~~~~~~~
The expected type comes from property 'declarationKind' which is declared here on type 'ExtractedDeclarations'
Found 1 error in async-to-promises.ts:2765
npm ERR! code 2
npm ERR! path /home/vitorlklock/Documents/VisualStudioProjects/1-LeadsTaker/babel-plugin-transform-async-to-promises
npm ERR! command failed
npm ERR! command sh -c tsc && node ./generate-helpers-string.js
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vitorlklock/.npm/_logs/2023-03-14T16_59_59_568Z-debug-0.log