Build NLU module

Trying to build NLU module with botpress 12.3.2 using yarn 1.21 and node 12.5.0 but getting error
TS2307: Cannot find module ‘botpress/sdk’.
TS2307: Cannot find module ‘botpress/ui’.
any insights ?
( btw : I tried with change version of node but same error .
Thanks for you help !

Hi and welcome to the community,

You need to have node 10.11.0, not 12.

Also, building NLU is part of the whole Botpress, not independently.

As mentioned before, simplest way to build module is taking of entire BP source from github.

Then you may do next things:

  1. cd modules\nlu
  2. yarn
  3. yarn build or yarn watch.

If you wanna build it without of BP source, it’s a bit more tricky.
I did it once using related *.d.ts files, but, just to be fair, I didn’t remember, how I did exactly.

1 Like

@asashour @Anton_Trofimov
Thanks for response

setup node v10.11.0 but getting same error

@negativeone, do you build it separately, or with the whole Botpress code, e.g. from master branch?

whole botpreess . and get code from tag 12.3.2


Also, what is the output of tsc -v, mine is 3.7.4

I would suggest doing the following:

  • Uninstall all nodes version(s)
  • Ensure you have latest yarn and latest tsc, node 10.11.0
  • Remove all Botpress sources
  • Try again
  • Send the complete logs, so that others would have a look.
1 Like


Thanks a lot!
its help!