Closed shauryam closed 6 years ago
@shauryam it looks like you’re trying to use this package with the v3 API after updating to v4.
Check out the migration guide to update your code accordingly. Alternatively you could downgrade your version of @slack/client
to the latest v3.
Description
Unable to require Client Modules using Node.js
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
@slack/client
version: 4.1.0node version:
OS version(s): 4.7.0
Steps to reproduce:
After downloading node modules using
npm install @slack/client --save
, when I try to require Client module using:const RTMClient = require("@slack/client");
orconst RTMClient = require("@slack/client").RtmClient;
orvar CLIENT_EVENTS = require("@slack/client").CLIENT_EVENTS;
Expected result:
Module should get imported
Actual result:
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.