Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    santosh kumar
    unable to import packaged fixer custom application exampleAnswered
    Topic posted October 9, 2019 by santosh kumar, tagged Bots, Virtual Assistant 
    24 Views, 2 Comments
    Title:
    unable to import packaged fixer custom application example
    Summary:
    unhandledRejection failed to start service built
    Content:

     

    I am trying to follow the fixer exercise i.e digital assistant invoking the fixer REST API.

    i.e during "Deploy Your Custom Component Service to the Skill"

    Refer: https://docs.oracle.com/en/cloud/paas/digital-assistant/tutorial-cc-dev/index.html#DeployYourCustomComponentServicetotheSkill

    section: "Deploy Your Custom Component Service to the Skill"

    my npm and nodejs version are following

    npm -v
    6.9.0

     

    node -v
    v10.16.3

     

    failed to start service built: Invalid component path: /usr/src/app/build_output/cc_package/components/CurrencyConverter.js
    RUNNER_FAIL_SERVICE_START: failed to start service built: Invalid component path: /usr/src/app/build_output/cc_package/components/CurrencyConverter.js
        at Runner.start (/usr/src/app/node_modules/hosted_cc_builder/src/runner.js:154:13)
        at Runner.run (/usr/src/app/node_modules/hosted_cc_builder/src/runner.js:131:10)
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:188:7)
    [object Promise]

     

    Digital Assistant: Version 19.1.5-1908120606

     

    please let me know how we can resolve this issue.

     
    Image:

    Best Comment

    Frank Nimphius

    Hi,

     

    the two most common reasons for this issue are

    1 - you forgot to run npm -install to install node dependencies 

    2 - your JavaScript file has a syntax error (its like Java files that would not compile in such a case)

     

    The tutorial has a completed version of the CurrencyConverter : https://docs.oracle.com/en/cloud/paas/digital-assistant/tutorial-cc-dev/files/completecode.txt. Just copy and paste this into your project to see if the error is a coding oversight or a missing npm install 

     

    Frank

    Comment

     

    • Frank Nimphius

      Hi,

       

      the two most common reasons for this issue are

      1 - you forgot to run npm -install to install node dependencies 

      2 - your JavaScript file has a syntax error (its like Java files that would not compile in such a case)

       

      The tutorial has a completed version of the CurrencyConverter : https://docs.oracle.com/en/cloud/paas/digital-assistant/tutorial-cc-dev/files/completecode.txt. Just copy and paste this into your project to see if the error is a coding oversight or a missing npm install 

       

      Frank