Hey all! @dhis2/cli-app-scripts
v12 is out now, bringing some nice new features with it!
It uses Vite under the hood to start and build apps, which makes it much faster and enjoyable to use, and it also upgrades React to v18 (I know React 19 is out since last week; that will come in a future update). We’ve also added some features for TypeScript like being able to bootstrap an app with a TS template, and the development experience for plugins is significantly improved. You can read more about the new and upcoming features in the release blog.
In almost every case, it should be easy to get your apps running: upgrade your DHIS2 libs to the latest versions, then run yarn start
, and if your app isn’t TypeScript or using .jsx extensions, add --allowJsxInJs
— it should be up and running then!
For React 18, you’ll probably need to make some changes to your tests — those are described in detail in the migration guide.
We’ve tested it in 10+ apps, and it’s working great. Feel free to ask any questions in a thread here.
Enjoy and happy developing!
2 posts - 2 participants