I have no idea why when I have clearly run yarn, this doesn't resolve still

import { App } from '@slack/bolt';
require('dotenv/config');
export const app = new App({
endpoints: {
events: '/slack/events',
actions: '/slack/actions',
},
token: process.env.SLACK_BOT_TOKEN,
signingSecret: process.env.SLACK_SIGNING_SECRET,
clientId: process.env.SLACK_CLIENT_ID,
clientSecret: process.env.SLACK_CLIENT_SECRET,
stateSecret: 'my-state-secret',
scopes: [
'app_mentions:read',
'chat:write',
'chat:write.public',
'chat:write.customize',
'channels:read',
'channels:manage',
'channels:join',
'groups:write',
'im:write',
'users:read',
'groups:read',
'incoming-webhook',
'im:history',
'commands',
],
});
My package.json:
"dependencies": {
"@slack/bolt": "^2.1.1",
"@slack/events-api": "^2.3.2",
"@slack/web-api": "^5.10.0",
"@slack/types": "^1.10.0",
...
If I've run yarn this should not be an issue. Yet TS complains it still is.
Hi @dschinkel, thanks for asking the question! We've never received this type of issues specific to the bolt package. If you provide an example project, which reproduces your issue, others may be able to help you out more easily.
I also noticed after I tried upgrading to the latest slack versions:
"@slack/bolt": "^3.3.0",
"@slack/events-api": "^3.0.0",
"@slack/web-api": "^6.2.0-rc.0",
"@slack/types": "^2.0.0",
that this syntax is no longer valid?:
endpoints: {
events: '/slack/events',
actions: '/slack/actions',
},

prior to upgrading, has been working but now that I upgraded to the latest did the API change?
I added this to tsconfig and now it's happy on the main issue I had
"moduleResolution": "node",
@dschinkel Great to know you've figured the cause out.
that this syntax is no longer valid?:
It's not valid for the default receiver HTTPReceiver since v3. It works with a string or an array of string. The ExpressReceiver still accepts the object but actually the keys in the objet are not used at all.
It works with a string
I tried endpoints: ['/slack/events','/slack/actions'] but that didn't seem to work.
@dschinkel As the type for the field is string | string[], it should work for sure: https://github.com/slackapi/bolt-js/blob/%40slack/bolt%403.3.0/src/receivers/HTTPReceiver.ts#L21
Probably the error you're facing may be due to another cause.
it's good yea I don't know what happened last time I tried it. Thx