I’m getting the following error in enketo docker logs
:
Grunt needs to be run!
>> Local Npm module "grunt-concurrent" not found. Is it installed?
>> Local Npm module "grunt-contrib-watch" not found. Is it installed?
>> Local Npm module "grunt-eslint" not found. Is it installed?
>> Local Npm module "grunt-karma" not found. Is it installed?
>> Local Npm module "grunt-mocha-test" not found. Is it installed?
>> Local Npm module "grunt-nodemon" not found. Is it installed?
>> Local Npm module "grunt-simple-nyc" not found. Is it installed?
Running "shell:clean-js" (shell) task
Running "shell:clean-css" (shell) task
Running "shell:clean-locales" (shell) task
Running "i18next:locales" (i18next) task
Running "widgets" task
fatal: No names found, cannot describe anything.
head: cannot open '.tag.txt' for reading: No such file or directory
File public/js/build/widgets.js created
File app/views/styles/component/_widgets.scss created
Running "system-sass-variables:create" (system-sass-variables) task
File app/views/styles/component/_system_variables.scss created
Running "sass:compile" (sass) task
Running "widgets" task
File public/js/build/widgets.js created
File app/views/styles/component/_widgets.scss created
Running "shell:build" (shell) task
>> internal/modules/cjs/loader.js:818
>> throw err;
>> ^
>>
>> Error: Cannot find module 'esbuild-plugin-alias'
>> Require stack:
>> - /srv/src/enketo_express/scripts/build.js
>> at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
>> at Function.Module._load (internal/modules/cjs/loader.js:667:27)
>> at Module.require (internal/modules/cjs/loader.js:887:19)
>> at require (internal/modules/cjs/helpers.js:74:18)
>> at Object.<anonymous> (/srv/src/enketo_express/scripts/build.js:3:15)
>> at Module._compile (internal/modules/cjs/loader.js:999:30)
>> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
>> at Module.load (internal/modules/cjs/loader.js:863:32)
>> at Function.Module._load (internal/modules/cjs/loader.js:708:14)
>> at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
>> code: 'MODULE_NOT_FOUND',
>> requireStack: [ '/srv/src/enketo_express/scripts/build.js' ]
>> }
Warning: Done, with errors: command "node ./scripts/build.js" (target "build") exited with code 1. Use --force to continue.
Aborted due to warnings.
Execution Time (2021-10-15 23:17:54 UTC-0)
loading tasks 31ms ▇▇▇ 7%
shell:clean-js 15ms ▇▇ 3%
shell:clean-css 9ms ▇ 2%
shell:clean-locales 12ms ▇▇ 3%
i18next:locales 34ms ▇▇▇ 7%
widgets 33ms ▇▇▇ 7%
sass:compile 290ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 61%
shell:build 47ms ▇▇▇▇▇ 10%
Total 474ms
I’m using the regular Enketo 2.8.1 (not the extra-widgets). I used the same versions that are deployed on the public servers, so I’m not sure what’s causing this… Any help please?