Issues with KPI updates - build errors

Error: Cannot find module ‘webpack-extract-translation-keys-plugin’ makes it sound like you need to run npm install (and possibly then npm run copy-fonts) before npm run build.

Beware that (almost) everything within a Docker container, including whatever’s inside /srv/src/kpi gets trashed whenever the container is recreated (not restarted, so you may be lulled into thinking that the storage is persistent).

If you’re going to build manually, you should follow what the Dockerfile does:

The normal development approach for front-end code is to use npm run watch, which will automatically reload when it detects changes in a source file. See How to use KPI development workflow the right way? - #3 by jnm.

3 Likes