Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module.exports are deprecated #40

Open
DJF3 opened this issue Feb 14, 2023 · 0 comments
Open

module.exports are deprecated #40

DJF3 opened this issue Feb 14, 2023 · 0 comments

Comments

@DJF3
Copy link

DJF3 commented Feb 14, 2023

Error message:
CommonJS modules (require, exports and module.exports) are deprecated. Use ES modules instead (import, export). See https://roomos.cisco.com/docs/MacroTutorial.md#modules for more info.

According to the documentation:

  1. the "module.exports" line needs to be removed
  2. the function should be prefixed with "export default" (like this export default function sendMessage(token, toPersonEmail, roomId, markdown) {
  3. Because of the "default" above you don't need "{ }" when calling the function.

Cheers!
duittenb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant