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

Error on generate-helpers-string.js #87

Open
vitorklock opened this issue Mar 14, 2023 · 0 comments
Open

Error on generate-helpers-string.js #87

vitorklock opened this issue Mar 14, 2023 · 0 comments

Comments

@vitorklock
Copy link

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
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