Skip to content

module.exports are deprecated #40

@DJF3

Description

@DJF3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions