creamy-belgium-93976
04/10/2025, 5:13 PMintegration.ts file that they are calling Integration as follows:
import * as bp from ".botpress";
const integration = new bp.Integration({
register,
unregister,
actions,
channels,
handler,
})
With this setup I am receiving a TS error: Cannot find module '.botpress' or its corresponding type declarations.
I assume the docs are most up-to-date and that I should be using the setup:
import * as sdk from "@botpress/sdk";
const integration = new sdk.Integration({
register,
unregister,
actions,
channels,
handler,
})
Can anyone verify which import we are supposed to be using? Just want to make sure we are building the integration correctly and with type safety 🙂
Thank you!!microscopic-shampoo-2255
04/10/2025, 5:34 PMrefined-beard-91000
04/10/2025, 5:34 PMmicroscopic-shampoo-2255
04/10/2025, 5:35 PMorange-egg-72655
04/11/2025, 1:12 PMorange-egg-72655
04/11/2025, 1:18 PMorange-egg-72655
04/11/2025, 1:18 PMorange-egg-72655
04/11/2025, 1:18 PMorange-egg-72655
04/11/2025, 1:19 PMcreamy-belgium-93976
04/17/2025, 11:12 PM"dependencies": {
"@botpress/cli": "^4.0.7",
"@botpress/client": "^1.3.0",
"@botpress/sdk": "^4.0.5",
"axios": "^1.6.8",
"bp": "^0.1.1-beta",
"zod": "^3.24.2"
},
https://cdn.discordapp.com/attachments/1359939286635385074/1362566467534590162/Screenshot_2025-04-17_at_6.11.33_PM.png?ex=6802dc69&is=68018ae9&hm=3b9a312513f447444ab86fab70ab03014d4d5e3ea4b0d9b1f8a585e1dfe5cd9a&creamy-belgium-93976
04/18/2025, 6:29 PM.botpress folder into my original integration and now I can see the appropriate types!