Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10342

SDK-JS can't be used as a node dependency

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 7.12.0, 7.12.0-alpha1
    • 7.11.0
    • sdk-js
    • None

    Description

      Due to the transpiling of superagent and fast-xml-parser, sdk-js can no longer be used as a npm package, as we need transpilation steps to be taken first.

      Steps to reproduce

      • create a node project
      • add "camunda-bpm-sdk-js": "git://github.com/camunda/camunda-bpm-sdk-js" as dependency
      • run npm i
      • add an index.js with var CamSDK = require('camunda-bpm-sdk-js')
      • run node index.js

      observed Behavior

      Error: Cannot find module './../../vendor/superagent'
          at Function.Module._resolveFilename (module.js:547:15)
      

      Expected Behavior

      • I can use sdk-js

      There are 2 ways to solve this:
      1. deliver transpiled dependencies with the package
      2. move the transpilation step in another repository

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                akif.hazarvi Akif
                martin.stamm Martin Stamm
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce