Skip to main content
1-Visitor
September 14, 2020
Solved

Facing issue on Widget Extension packaging for Thingworx using npm.

  • September 14, 2020
  • 1 reply
  • 2386 views

Hi Everyone,

 

We were trying to create Extension for Thingworx Using Angular.

we following below steps and stuck for packaging extension:

1. we following this URL : http://support.ptc.com/help/thingworx_hc/visual_sdk/#download-and-installation

2. we have created basic app on angular which contains np-prime and file like .js, .css, .html, .ts.

3. we have install NodeJS, npm, Aurelia, gulp.js using node prompt.

4. download Thingworx sdk extension from PTC download page as mention in http://support.ptc.com/help/thingworx_hc/visual_sdk/#download-and-installation.

5. while running sdk it asking GitHub credentials, which we don't have access.

npm install twx-wc-sdk/ptcs-library

6. Below command throwing error as "non-recognized" or internal external command:

  • Open a command prompt, and then change your directory to your working folder.
  • Run the following command to create the extension:

    mub
    

 

we have tried to create sample extension and following this guide http://support.ptc.com/help/thingworx_hc/visual_sdk/#download-and-installation.

we have done all installation but while running 'mub' utility command getting error which is enclosed in attachment.

 

Please guide us and let us know the way to overcome this error.

 

Regards,

Mayank 

Best answer by nmilleson

Mayank,

 

There is no sdk utility for 8.5.  Only for 9.0 (you'll see under the downloads for the 9.0 release there is a ThingWorx Web Component SDK Utility).  The 'mub' program needs that utility to work, but regardless, the custom web-component widgets will not work for versions below ThingWorx 9.0 . 

1 reply

17-Peridot
September 14, 2020

Mayank,

 

You mentioned that you downloaded the SDK, but did you also grab the web-component-SDK-utility?  That part is described here:

 

http://support.ptc.com/help/thingworx_hc/visual_sdk/Extension_Tool/Using_The_SDK_Utility_To_Create_A_ThingWorx_Extension/

 

Also, from your drag-and-drop post you mentioned that you are on ThingWorx 8.5 ... unfortunately the web-component SDK only works for TWx 9.0 and above.

1-Visitor
September 14, 2020

yeah we were not able to find mentioned "twx-wc-sdk-utility" zip. so we tried all zip extension from download portal.

 

and yes we have 8.5 Thingworx version. we were not able to run 'mub' command and use this sdk utility for extension build.

 

We tried lot many ways still not succeed.

 

 

nmilleson17-PeridotAnswer
17-Peridot
September 14, 2020

Mayank,

 

There is no sdk utility for 8.5.  Only for 9.0 (you'll see under the downloads for the 9.0 release there is a ThingWorx Web Component SDK Utility).  The 'mub' program needs that utility to work, but regardless, the custom web-component widgets will not work for versions below ThingWorx 9.0 .