wolf-core icon indicating copy to clipboard operation
wolf-core copied to clipboard

Build issue with TypeScript project "botbuilder does not export member 'Promiseable'"

Open liliankasem opened this issue 5 years ago • 4 comments

Describe the bug I get a build error after adding wolf to my existing bot project.

node_modules/wolf-core/dist/middlewares/wolfMiddleware.d.ts:1:42

It is complaining that the botbuilder node module does not export a member called Promiseable

To Reproduce Steps to reproduce the behavior:

  1. Follow README instructions to add wolf to an existing (typescript) bot v4 project
  2. Run tsc

Screenshots screen shot 2019-03-04 at 6 21 33 pm

screen shot 2019-03-04 at 6 09 38 pm

Bonus -> can't write abilities.d.ts file: screen shot 2019-03-04 at 6 22 17 pm

Desktop (please complete the following information):

  • OS: macOS 10.13.16
  • Browser: Chrome
  • Wolf-core version: 2.5.2

liliankasem avatar Mar 05 '19 02:03 liliankasem

Hey @liliankasem thanks for filing this. Sorry this didn't work out of the box for you, it looks like botbuilder package no longer exports the Promisable type from the version we were referencing. We will look into getting 2.5 running..

Id recommend using our alpha version of wolf-botbuilder which will give you more flexibility utilizing wolf as a function call instead of relying on using the botbuilder middleware pattern.

Since we are currently developing and improving both wolf-core and wolf-botbuilder, I'd recommend locking into [email protected] which is locked on [email protected]. This will prevent pulling any new changes we we are making daily on @alpha. If you look at wolf-botbuilder/examples there should be working examples..

Hope this helps, please let me know if you run into any issues/have suggestions.

kevinleung23 avatar Mar 05 '19 03:03 kevinleung23

Thanks Kevin! I'll look into wolf-botbuilder and play around with that.

liliankasem avatar Mar 05 '19 18:03 liliankasem

We'd welcome any feedback, glad you're checking out Wolf! Hoping to get v3 stable and out soon. :)

kevinleung23 avatar Mar 05 '19 19:03 kevinleung23

Yeah of course, happy to contribute where I can. Currently just trying to evaluate if this will be a good fit for an upcoming project :)

liliankasem avatar Mar 05 '19 19:03 liliankasem