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
installed a new twilio-cli via apt keyring twilio --version twilio-cli/5.22.3 wsl-x64 node-v18.20.4
but a new project created with it twilio serverless:init teste --typescript has type issues.
~/teste> npm run start
> [email protected] prestart
> npm run build
> [email protected] build
> tsc && npm run build:copy-assets
src/functions/hello-world.ts:21:14 - error TS2322: Type '(context: Context<MyContext>, event: MyEvent, callback: ServerlessCallback) => void' is not assignable to type 'ServerlessFunctionSignature'.
Types of parameters 'event' and 'event' are incompatible.
Type '{ request: { cookies: {}; headers: {}; }; }' has no properties in common with type 'MyEvent'.
21 export const handler: ServerlessFunctionSignature = function(
~~~~~~~
Found 1 error in src/functions/hello-world.ts:21
Steps to Reproduce
install twilio-cli via apt
run twilio serverless:init teste --t typescript a prompt to download serverless plugin will occur
the twilio-runtime version set as default in package.json via twilio serverless:init teste --typescript is 2.0.3. while available via npm. but not available in twilio-serverlessenvironment.
This issue is stale because it has been open for 30 days with no activity. Please remove stale label or comment or this issue will be closed in 30 days.
Issue Summary
installed a new twilio-cli via apt keyring
twilio --version twilio-cli/5.22.3 wsl-x64 node-v18.20.4
but a new project created with it
twilio serverless:init teste --typescript
has type issues.Steps to Reproduce
twilio serverless:init teste --t typescript
a prompt to download serverless plugin will occurcd teste && npm run start
Technical details:
The text was updated successfully, but these errors were encountered: