Pluggable widget development error

I started the “Build a Text Box Pluggable Widget: Part 1” How-to and got to the 3.3.3 point. After I type the “npm run dev” command I get the following errors: Running MX Widget Tools script: "start:ts" npm ERR! missing script: start:ts npm ERR! npm ERR! Did you mean this? npm ERR! start npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\%username%\AppData\Roaming\npm-cache\_logs\2019-08-02T11_05_30_553Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! textbox@1.0.0 dev: `pluggable-widgets-tools start:ts` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the textbox@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. below is the error log: 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\...\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'start:ts' ] 2 info using npm@6.10.2 3 info using node@v10.15.3 4 verbose stack Error: missing script: start:ts 4 verbose stack 4 verbose stack Did you mean this? 4 verbose stack start 4 verbose stack at run (C:\...\npm\node_modules\npm\lib\run-script.js:155:19) 4 verbose stack at C:\...\npm\node_modules\npm\lib\run-script.js:63:5 4 verbose stack at C:\...\npm\node_modules\npm\node_modules\read-package-json\read-json.js:115:5 4 verbose stack at C:\...\npm\node_modules\npm\node_modules\read-package-json\read-json.js:418:5 4 verbose stack at checkBinReferences_ (C:\...\npm\node_modules\npm\node_modules\read-package-json\read-json.js:373:45) 4 verbose stack at final (C:\...\npm\node_modules\npm\node_modules\read-package-json\read-json.js:416:3) 4 verbose stack at then (C:\...\npm\node_modules\npm\node_modules\read-package-json\read-json.js:160:5) 4 verbose stack at C:\...\npm\node_modules\npm\node_modules\read-package-json\read-json.js:280:12 4 verbose stack at C:\...\npm\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:90:16 4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3) 5 verbose cwd D:\dev\...\CustomWidgets\textBox 6 verbose Windows_NT 10.0.18362 7 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\...\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "start:ts" 8 verbose node v10.15.3 9 verbose npm v6.10.2 10 error missing script: start:ts 10 error 10 error Did you mean this? 10 error start 11 verbose exit [ 1, true ] Yeoman (npm install yo -g) and Mendix Pluggable Widget Generator (npm install @mendix/generator-widget -g) are of course installed. Mendix version: 8.0.0
2 answers

Hi Sergkei, we've just published a new version of the Widget Tools. Can you please update manually on your generated project?

- Change "@mendix/pluggable-widgets-tools" from "8.0.0" to "8.0.1" in package.json file.

Or simply re-generate using the Widget Generator.

Can you also give us a feedback if its working now?


HI, Thanks for your feedback, we are currently looking for a fix for Windows. Keep updated with the generator subscribing to our Github repo Widget Generator