You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The typescript-example is throwing error when starting the server
The problem is found in index.ts file(promise part) , the updation of typescript package has caused this error .. Its asking for the argument
I tried to solve the issue by giving void return type to promise and it worked fine
Can you please take a look into it , whether its correct way or there is any alternative
The text was updated successfully, but these errors were encountered:
I tested locally and yeah that is happening, probably some improvements on the TypeScript compiler that now shows that as error
❯ npm start
> typescript-example@1.0.0 start
> ts-node src/index.ts
/home/lm/code/opossum-examples/more-examples/typescript-example/node_modules/ts-node/src/index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
src/index.ts:6:7 - error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void'in your type argument to 'Promise'?
6 resolve();
I tried to solve the issue by giving void return type to promise and it worked fine
Can you please send the pull request with the fix ?
I'm going to assign this issue to you.
The typescript-example is throwing error when starting the server
The problem is found in index.ts file(promise part) , the updation of typescript package has caused this error .. Its asking for the argument
I tried to solve the issue by giving void return type to promise and it worked fine
Can you please take a look into it , whether its correct way or there is any alternative
The text was updated successfully, but these errors were encountered: