Botframework-solutions: [TS] yo bot-virtualassistant:skill generated project runtime error

Created on 7 Oct 2020  Â·  6Comments  Â·  Source: microsoft/botframework-solutions

What project is affected?

Yeoman bot-virtualassistant:skill generator

What language is this in?

TypeScript

What happens?

Runtime error when running 'npm run start'

What are the steps to reproduce this issue?

yo bot-virtualassistant:skill
npm install
npm run start

What were you expecting to happen?

bot to run locally

Can you share any logs, error output, etc.?

node_modules/adaptive-expressions/lib/functionUtils.d.ts:9:31 - error TS7016: Could not find a declaration file for module '@microsoft/recognizers-text-data-types-timex-expression'. '/Users/vadim/projects/bcg/skills/awesome-skill/node_modules/@microsoft/recognizers-text-data-types-timex-expression/dist/recognizers-text-data-types-timex-expression.umd.js' implicitly has an 'any' type.
Try npm install @types/microsoft__recognizers-text-data-types-timex-expression if it exists or add a new declaration (.d.ts) file containing declare module '@microsoft/recognizers-text-data-types-timex-expression';

9 import { TimexProperty } from '@microsoft/recognizers-text-data-types-timex-expression';
~~~~~~~~~~~~~

Found 1 error.

Any screenshots or additional context?

Kobuk bug in-progress

All 6 comments

Thanks @vkacherov for reporting this issue. In order to narrow the problem, we came up with some questions:

  1. Which version of generator-bot-virtualassistant have you installed?
  2. Have you checked if the same issue happens generating a Virtual Assistant too?

We will try to reproduce this issue and as soon as we have any update, we will back to you here 😊.

Hi @Batta32, I'm using the latest version [email protected] and seeing the exact same issue generating/running the Virtual Assistant.

I'm running Yeoman 3.1.1, Node v13.12.0 and npm v6.14.8 on MacOS 10.15.6

Thanks @vkacherov for your quick reply, we will try to reproduce the environment and the issue. We will let know you the updates 😊.

Hi @vkacherov, we are currently working on this issue trying to reproduce the environment and the issue following the mentioned steps.

This week we will let you know any update that we can have 😊.

Hi @vkacherov, we successfully reproduced the mentioned issue, and furthermore we have a workaround.

We recommend you comment the line "strict": true of the tsconfig.json file of bot generated, and then run the npm run start.

Additional Context

We raised the same issue #3635 and it's fixed with PR #3631.

In addition, we found the opened issue microsoft/Recognizers-Text#588 explaining that recognizers-text-data-types-timex-expression package should have a types file.

Let us know if this helps you 😊.

@peterinnesmsft - we can close the issue due to inactivity. @vkacherov if you are still experiencing issues, feel free to reactivate and we can pick this up again.

Was this page helpful?
0 / 5 - 0 ratings