Scaffolding Native Widget Missing devDependiencies types/react and react-native

0
Hello,   I am following the steps in https://docs.mendix.com/howto/extensibility/build-native-widget/ Running the command yo @mendix/widget GroupBox gives a success message. When I scroll up I see the message: npm ERR! code EJSONPARSE npm ERR! file D:\Mendix\CustomWidgetBuild\groupBox\groupBox\package.json npm ERR! JSON.parse Failed to parse json npm ERR! JSON.parse Unexpected token } in JSON at position 750 while parsing near '...": "^6.0.2", npm ERR! JSON.parse npm ERR! JSON.parse   }, npm ERR! JSON.parse   "dependencies":...' npm ERR! JSON.parse Failed to parse package.json data. npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.scroll up I see the message Part of the generated package.json is:   "devDependencies": {     "@mendix/pluggable-widgets-tools": "^9.24.0",     "@types/big.js": "^6.0.2",        }, There is a , after   "@types/big.js": "^6.0.2". A compare to another package.json I see 2 additional lines in the other packages:    "@types/react": "~16.9.0",     "@types/react-native": "~0.61.23"   Any idea what prerequisite I am missing or am I using a wrong version?
asked
1 answers
2

Hi  Jeroen Boerkamp,

                                  Once you finished with yo command type this [ npm i @mendix/pluggable-widgets-tools]. I hope this will solve the error.

answered