slackapi / node-slack-interactive-messages

Slack Buttons, Menus, and Dialogs made simpler for Node
MIT License
133 stars 41 forks source link

Unable to start server locally #42

Closed prolificcoder closed 6 years ago

prolificcoder commented 6 years ago

Description

Running npm start locally is giving TypeError

/Users/smalugu/code/exp/node-slack-interactive-messages/examples/express-all-interactions/node_modules/@slack/interactive-messages/dist/adapter.js:200 throw error; ^

TypeError: Type must be 'select' or 'button' at validateActionConstraints (/Users/smalugu/code/exp/node-slack-interactive-messages/examples/express-all-interactions/node_modules/@slack/interactive-messages/dist/adapter.js:87:12)

What type of issue is this? (place an x in one of the [ ])

Requirements

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

@slack/interactive-messages version: node version: OS version(s):8.1.2

Steps to reproduce:

1.Clone the repo 2.npm install 3.set the env variables as the docs 4.npm start

Expected result:

server listening on port message

Actual result:

Error message /Users/smalugu/code/exp/node-slack-interactive-messages/examples/express-all-interactions/node_modules/@slack/interactive-messages/dist/adapter.js:200 throw error; ^

TypeError: Type must be 'select' or 'button' at validateActionConstraints (/Users/smalugu/code/exp/node-slack-interactive-messages/examples/express-all-interactions/node_modules/@slack/interactive-messages/dist/adapter.js:87:12)

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

aoberoi commented 6 years ago

@prolificcoder sorry about this! the reason it failed is because we haven't released the latest master yet. i'll try to get that out ASAP. you should then be able to npm install @slack/interactive-messages again in the directory to get the code working.