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

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

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.11.0
    • Fix Version/s: 7.12.0, 7.12.0-alpha1
    • Component/s: sdk-js
    • Labels:
      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: