The error below happens when I click on a button on the app home page. I'm not sure if that's something I wasn't supposed to do (trigger a modal from an action on the home page). I also tend to think that the function buildSource should not be just checking if the enterprise.id is undefined, but also if it's null, shouldn't it?
$ node app.js
[DEBUG] web-api:WebClient:0 initialized
[DEBUG] web-api:WebClient:0 apiCall('auth.test') start
[DEBUG] web-api:WebClient:0 will perform http request
[DEBUG] web-api:WebClient:0 apiCall('auth.test') start
[DEBUG] web-api:WebClient:0 will perform http request
[DEBUG] web-api:WebClient:0 http response received
[DEBUG] web-api:WebClient:0 http response received
/Users/theomelo/Workspace/Personal/catswisdom/node_modules/@slack/bolt/dist/App.js:502
return bodyAsActionOrOptionsOrViewActionOrShortcut.enterprise.id;
^
TypeError: Cannot read property 'id' of null
at /{omitted}/catswisdom/node_modules/@slack/bolt/dist/App.js:502:79
at buildSource (/{omitted}/catswisdom/node_modules/@slack/bolt/dist/App.js:511:7)
at App.processEvent (/{omitted}/catswisdom/node_modules/@slack/bolt/dist/App.js:284:24)
at ExpressReceiver.requestHandler (/{omitted}/catswisdom/node_modules/@slack/bolt/dist/ExpressReceiver.js:141:77)
at Layer.handle [as handle_request] (/{omitted}/catswisdom/node_modules/express/lib/router/layer.js:95:5)
at next (/{omitted}/catswisdom/node_modules/express/lib/router/route.js:137:13)
at exports.respondToUrlVerification (/{omitted}/catswisdom/node_modules/@slack/bolt/dist/ExpressReceiver.js:205:5)
at Layer.handle [as handle_request] (/{omitted}/catswisdom/node_modules/express/lib/router/layer.js:95:5)
at next (/{omitted}/catswisdom/node_modules/express/lib/router/route.js:137:13)
at exports.respondToSslCheck (/{omitted}/catswisdom/node_modules/@slack/bolt/dist/ExpressReceiver.js:198:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
x in one of the [ ])x in each of the [ ])Filling out the following details about bugs will help us solve your issue sooner.
2.6.0v15.5.1MacOS Catalina 10.15.7 (19H114)I would expect a modal with the view I passed as an argument
The server closes with the error message: TypeError: Cannot read property 'id' of null


I think this might be related to #726. I'm investigating this shortly
Fixed by #730
Just released version 2.6.1 to npm. Please reopen this issue if it isn't solved for you
Most helpful comment
Fixed by #730