Pluggable Widgets error : npm ERR! code ETARGET

0
 Hi All,   I'm new for creating Pluggable Widgets for mendix using npm. I have followed the steps provided in Mendix docs. but I'm facing the error.  Mendix Pluggable Widgets created dir "Mywidget" npx @mendix/generator-widget TextBox Answered required question for widget creation like Name, description company etc.  after that below error. npm ERR! code ETARGET npm ERR! notarget No matching version found for @mendix/pluggable-widgets-tools@^10.15.0. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. appreciate any Help 
asked
2 answers
0
  • ❌ Error: @mendix/pluggable-widgets-tools@^10.15.0 not found

  •  Reason: Version 10.15.0 doesn’t exist on npm

  • Fix:

    1. Open package.json

    2. Change version to "@mendix/pluggable-widgets-tools": "^10.9.0"

    3. Run npm install

  •  use:npx @mendix/generator-widget@10.9.0 TextBox

  • Check available versions here:https://www.npmjs.com/package/@mendix/pluggable-widgets-tools

answered
0

Hi Vijaybir Singh,

The version @mendix/generator-widget@10.9.0 does not exist, which is why you're getting the ETARGET error.

Solution :

Use the latest available version:

npx @mendix/generator-widget@10.15.1 TextBox

You can check the available versions here:🔗 https://www.npmjs.com/package/@mendix/generator-widget?activeTab=versions

After generating the widget, if needed, update the @mendix/pluggable-widgets-tools version in package.json to match your Mendix Studio Pro version, and then run:

npm install

answered