Yeoman bot-virtualassistant:skill generator
TypeScript
Runtime error when running 'npm run start'
yo bot-virtualassistant:skill
npm install
npm run start
bot to run locally
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.
Thanks @vkacherov for reporting this issue. In order to narrow the problem, we came up with some questions:
generator-bot-virtualassistant have you installed?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.
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.