Neither does. Download the C# example, open in VS - nothing works. Lots of errors. Try to upgrade NuGet packages and things get worse.
A little better with the Node example: Hoek.inherits is not a function. OK, we can probably track this down easily enough.
Teams is a popular application. The QA for the examples is not up to par.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi tabinnorway! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out. Best regards, Teams Platform
@tabinnorway , Sorry for your inconvenience, Could you please take a look at latest Bot Builder SDK V4 sample code? Let me know if this doesn't help you out.
@tabinnorway Regarding the NodeJS sample, try uninstalling gulp from global scope npm uninstall -g gulp, then re-install all the dependencies from the sample-project npm install and run the app npm start.
I had the same problem and this worked for me. Cheers :)
@kosset, I've tried that and I get a whole slew of errors. If I delete node_modules and package-lock.json I get farther as everything installs with npm install. However, when I run npm start I get sh: nodemon: command not found. So I install nodemon. npm install --save-dev nodemon Then with npm start I get
Warning: To load an ES modeul, set "type": "module" in the package.json or use the .mjs extension.
app.js:4
import path from 'path';
I am getting following error while running the code.
import path from 'path';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:1047:16)
at Module._compile (internal/modules/cjs/loader.js:1097:27)
at loader (C:SourceCodemsteams-appnode_modulesbabel-registerlibnode.js:144:5)
at Object.require.extensions.
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at Object.
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
Can anyone please help to resolve.
@mfbhatt I was having that same issue. I ended up cloning a forked repo. https://github.com/jrkerns/msteams-samples-hello-world-nodejs
This one works after you install the necessary dependencies (npm install).
You will run into gulp 3 syntax issues when trying to create the app package but check this out to solve that problem:
https://stackoverflow.com/questions/61642647/i-get-assertionerror-err-assertion-task-function-must-be-specified-when-i-r
Most helpful comment
@mfbhatt I was having that same issue. I ended up cloning a forked repo. https://github.com/jrkerns/msteams-samples-hello-world-nodejs
This one works after you install the necessary dependencies (npm install).
You will run into gulp 3 syntax issues when trying to create the app package but check this out to solve that problem:
https://stackoverflow.com/questions/61642647/i-get-assertionerror-err-assertion-task-function-must-be-specified-when-i-r