{"action":"closed","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/bot-docs/issues/551","repository_url":"https://api.github.com/repos/MicrosoftDocs/bot-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/bot-docs/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/bot-docs/issues/551/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/bot-docs/issues/551/events","html_url":"https://github.com/MicrosoftDocs/bot-docs/issues/551","id":382350070,"node_id":"MDU6SXNzdWUzODIzNTAwNzA=","number":551,"title":"Unable to start TypeScript bot","user":{"login":"erinha","id":24400343,"node_id":"MDQ6VXNlcjI0NDAwMzQz","avatar_url":"https://avatars0.githubusercontent.com/u/24400343?v=4","gravatar_id":"","url":"https://api.github.com/users/erinha","html_url":"https://github.com/erinha","followers_url":"https://api.github.com/users/erinha/followers","following_url":"https://api.github.com/users/erinha/following{/other_user}","gists_url":"https://api.github.com/users/erinha/gists{/gist_id}","starred_url":"https://api.github.com/users/erinha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinha/subscriptions","organizations_url":"https://api.github.com/users/erinha/orgs","repos_url":"https://api.github.com/users/erinha/repos","events_url":"https://api.github.com/users/erinha/events{/privacy}","received_events_url":"https://api.github.com/users/erinha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-19T18:58:49Z","updated_at":"2018-11-19T23:50:39Z","closed_at":"2018-11-19T23:50:39Z","author_association":"NONE","body":"After creating the bot using the generator and choosing TypeScript as the programming language, npm start fails with the following errors. I'm using TypeScript version 2.9.2.\n\n&gt; myChatBot@1.0.0 start F:\\Source\\Repos\\Scratch\\myJsBots\\myChatBot\n&gt; tsc && node ./lib/index.js\n\nnode_modules/ms-rest-js/es/lib/restError.d.ts:4:42 - error TS1039: Initializers are not allowed in ambient contexts.\n\n4     static readonly REQUEST_SEND_ERROR = \"REQUEST_SEND_ERROR\";\n                                           ~~~~~~~~~~~~~~~~~~~~\n\n\nnode_modules/ms-rest-js/es/lib/restError.d.ts:5:45 - error TS1039: Initializers are not allowed in ambient contexts.\n\n5     static readonly REQUEST_ABORTED_ERROR = \"REQUEST_ABORTED_ERROR\";\n                                              ~~~~~~~~~~~~~~~~~~~~~~~\n\n\nnode_modules/ms-rest-js/es/lib/restError.d.ts:6:35 - error TS1039: Initializers are not allowed in ambient contexts.\n\n6     static readonly PARSE_ERROR = \"PARSE_ERROR\";\n                                    ~~~~~~~~~~~~~\n\n\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 2\nnpm ERR! myChatBot@1.0.0 start: `tsc && node ./lib/index.js`\nnpm ERR! Exit status 2\nnpm ERR!\nnpm ERR! Failed at the myChatBot@1.0.0 start script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: dfaad3f2-75c5-e958-4734-8925d03d95c6\n* Version Independent ID: 8d98b390-5368-1fa4-8cce-3b0cff252eaa\n* Content: [Create a bot using Bot Builder SDK for JavaScript - Bot Service](https://docs.microsoft.com/en-us/azure/bot-service/javascript/bot-builder-javascript-quickstart?view=azure-bot-service-4.0)\n* Content Source: [articles/javascript/bot-builder-javascript-quickstart.md](https://github.com/MicrosoftDocs/bot-docs/blob/live/articles/javascript/bot-builder-javascript-quickstart.md)\n* Service: **bot-service**\n* Product: **bot-framework**\n* GitHub Login: @JonathanFingold\n* Microsoft Alias: **v-jofing**"}}
{"actor":{"display_login":"Kaiqb"}}