Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Typescript compilation error when using BotBuilder-Azure package #42

Closed
renil opened this issue Dec 13, 2017 · 4 comments
Closed

Typescript compilation error when using BotBuilder-Azure package #42

renil opened this issue Dec 13, 2017 · 4 comments

Comments

@renil
Copy link

renil commented Dec 13, 2017

Issue Description

When building bots using NodeJS and typescript, including botbuilder-azure reference to include Cosmos DB for storage causing build issues.

Packages used

"botbuilder": "^3.13.1",
"botbuilder-azure": "^3.0.4"

Code Example

import * as builder from 'botbuilder';
import * as azureState from 'botbuilder-azure';

Reproduction Steps

  1. Create a new Node JS project
  2. Use typescript to create the main files
  3. Include the packages and import the packages to the main file
  4. Running tsc causing compilation errors

Expected Behavior

No typescript compile errors.

Actual Results

import { ConnectionOptions, ConnectionConfig } from "tedious"; is missing in the type definition file and is causing compilation errors.

node_modules/botbuilder-azure/lib/botbuilder-azure.d.ts(252,49): error TS2304: Cannot find name 'ConnectionConfig'.
node_modules/botbuilder-azure/lib/botbuilder-azure.d.ts(259,43): error TS2304: Cannot find name 'ConnectionOptions'.
@shirleyca
Copy link

I have the same issue. Can anyone please help? Thanks!

@iMicknl
Copy link
Member

iMicknl commented Dec 23, 2017

Duplicate of #38.

@stevengum
Copy link
Member

Sorry for the painfully long time it took to get #55 merged... It has finally been merged and there is a new release (3.1.0) out.

@stevengum
Copy link
Member

Closing via #55

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants