ERPNEXT + HRMS: What HRMS version is compatible with ERPNEXT 15.4.0

I am using pwd.yml to deploy Frappe & ERPNEXT on docker. But when I am trying to install HRMS, it’s breaking somewhere and messing up with stylings. I have tried HRMS version-15, develop version, still getting the same issue. Can anyone help me out.

System
Mac OS - M1 chip

pwd.yml

version: "3"

services:
  backend:
    image: frappe/erpnext:v15.4.0
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: on-failure
    volumes:
      - sites:/home/frappe/frappe-bench/sites
      - logs:/home/frappe/frappe-bench/logs

  configurator:
    image: frappe/erpnext:v15.4.0
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: none
    entrypoint:
      - bash
      - -c
    command:
      - >
        ls -1 apps > sites/apps.txt;
        bench set-config -g db_host $$DB_HOST;
        bench set-config -gp db_port $$DB_PORT;
        bench set-config -g redis_cache "redis://$$REDIS_CACHE";
        bench set-config -g redis_queue "redis://$$REDIS_QUEUE";
        bench set-config -gp socketio_port $$SOCKETIO_PORT;
    environment:
      DB_HOST: db
      DB_PORT: "3306"
      REDIS_CACHE: redis-cache:6379
      REDIS_QUEUE: redis-queue:6379
      SOCKETIO_PORT: "9000"
    volumes:
      - sites:/home/frappe/frappe-bench/sites
      - logs:/home/frappe/frappe-bench/logs

  create-site:
    image: frappe/erpnext:v15.4.0
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: none
    volumes:
      - sites:/home/frappe/frappe-bench/sites
      - logs:/home/frappe/frappe-bench/logs
    entrypoint:
      - bash
      - -c
    command:
      - >
        wait-for-it -t 120 db:3306;
        wait-for-it -t 120 redis-cache:6379;
        wait-for-it -t 120 redis-queue:6379;
        export start=`date +%s`;
        until [[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".db_host // empty"` ]] && \
          [[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_cache // empty"` ]] && \
          [[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_queue // empty"` ]];
        do
          echo "Waiting for sites/common_site_config.json to be created";
          sleep 5;
          if (( `date +%s`-start > 120 )); then
            echo "could not find sites/common_site_config.json with required keys";
            exit 1
          fi
        done;
        echo "sites/common_site_config.json found";
        bench new-site --no-mariadb-socket --admin-password=admin --db-root-password=admin --install-app erpnext --set-default frontend;

  db:
    image: mariadb:10.6
    platform: linux/amd64
    healthcheck:
      test: mysqladmin ping -h localhost --password=admin
      interval: 1s
      retries: 15
    deploy:
      restart_policy:
        condition: on-failure
    command:
      - --character-set-server=utf8mb4
      - --collation-server=utf8mb4_unicode_ci
      - --skip-character-set-client-handshake
      - --skip-innodb-read-only-compressed # Temporary fix for MariaDB 10.6
    environment:
      MYSQL_ROOT_PASSWORD: admin
    volumes:
      - db-data:/var/lib/mysql

  frontend:
    image: frappe/erpnext:v15.4.0
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: on-failure
    command:
      - nginx-entrypoint.sh
    environment:
      BACKEND: backend:8000
      FRAPPE_SITE_NAME_HEADER: frontend
      SOCKETIO: websocket:9000
      UPSTREAM_REAL_IP_ADDRESS: 127.0.0.1
      UPSTREAM_REAL_IP_HEADER: X-Forwarded-For
      UPSTREAM_REAL_IP_RECURSIVE: "off"
      PROXY_READ_TIMEOUT: 120
      CLIENT_MAX_BODY_SIZE: 50m
    volumes:
      - sites:/home/frappe/frappe-bench/sites
      - logs:/home/frappe/frappe-bench/logs
    ports:
      - "8080:8080"

  queue-long:
    image: frappe/erpnext:v15.4.0
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: on-failure
    command:
      - bench
      - worker
      - --queue
      - long
    volumes:
      - sites:/home/frappe/frappe-bench/sites
      - logs:/home/frappe/frappe-bench/logs

  queue-short:
    image: frappe/erpnext:v15.4.0
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: on-failure
    command:
      - bench
      - worker
      - --queue
      - short
    volumes:
      - sites:/home/frappe/frappe-bench/sites
      - logs:/home/frappe/frappe-bench/logs

  redis-queue:
    image: redis:6.2-alpine
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: on-failure
    volumes:
      - redis-queue-data:/data

  redis-cache:
    image: redis:6.2-alpine
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: on-failure
    volumes:
      - redis-cache-data:/data

  scheduler:
    image: frappe/erpnext:v15.4.0
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: on-failure
    command:
      - bench
      - schedule
    volumes:
      - sites:/home/frappe/frappe-bench/sites
      - logs:/home/frappe/frappe-bench/logs

  websocket:
    image: frappe/erpnext:v15.4.0
    platform: linux/amd64
    deploy:
      restart_policy:
        condition: on-failure
    command:
      - node
      - /home/frappe/frappe-bench/apps/frappe/socketio.js
    volumes:
      - sites:/home/frappe/frappe-bench/sites
      - logs:/home/frappe/frappe-bench/logs

volumes:
  db-data:
  redis-queue-data:
  redis-cache-data:
  sites:
  logs:

This is log of installing HRMS app

I used following command for hrms app

bench get-app hrms

*Log

$ cd apps
$ ls
erpnext  frappe
$ bench get-app hrms
Getting hrms
$ git clone https://github.com/frappe/hrms.git   --origin upstream
Cloning into 'hrms'...
remote: Enumerating objects: 51494, done.
remote: Counting objects: 100% (2614/2614), done.
remote: Compressing objects: 100% (900/900), done.
remote: Total 51494 (delta 1900), reused 2129 (delta 1694), pack-reused 48880
Receiving objects: 100% (51494/51494), 21.70 MiB | 5.49 MiB/s, done.
Resolving deltas: 100% (29969/29969), done.
Ignoring dependencies of hrms. To install dependencies use --resolve-deps
Installing hrms
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/hrms 

[notice] A new release of pip is available: 23.3.1 -> 23.3.2
[notice] To update, run: python -m pip install --upgrade pip
$ yarn install
yarn install v1.22.21
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

$ cd frontend && yarn install
yarn install v1.22.21
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
[3/4] Linking dependencies...
warning "frappe-ui > @tiptap/extension-color@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-highlight@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-image@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-link@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-mention@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-placeholder@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-table@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-table-cell@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-table-header@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-table-row@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-text-align@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-text-style@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/extension-typography@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/suggestion@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/vue-3@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/vue-3 > @tiptap/extension-bubble-menu@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning "frappe-ui > @tiptap/vue-3 > @tiptap/extension-floating-menu@2.1.7" has unmet peer dependency "@tiptap/core@^2.0.0".
warning " > vite-plugin-pwa@0.16.6" has unmet peer dependency "workbox-build@^7.0.0".
warning " > vite-plugin-pwa@0.16.6" has unmet peer dependency "workbox-window@^7.0.0".
[4/4] Building fresh packages...
Done in 243.46s.
Done in 259.30s.
$ bench build --app hrms
βœ” Application Assets Linked                                                                                                      


yarn run v1.22.21
$ node esbuild --production --apps hrms --run-build-command
File                                                        Size

hrms/dist/js/
β”œβ”€ hierarchy-chart.bundle.VANQN5RB.js                       225.55 Kb
β”œβ”€ hrms.bundle.3HF3NSSC.js                                  1.73 Kb
└─ performance.bundle.3CUJXYSD.js                           8.56 Kb

hrms/dist/css/
└─ hrms.bundle.2EXZRORW.css                                 4.78 Kb

hrms/dist/css-rtl/
└─ hrms.bundle.LC2XVWH2.css                                 4.79 Kb

 DONE  Total Build Time: 8.705s


Running build command for hrms
$ cd frontend && yarn build
$ vite build --base=/assets/hrms/frontend/ && yarn copy-html-entry
vite v4.5.0 building for production...
transforming (17) src/router/leaves.jsBrowserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
transforming (99) node_modules/@ionic/core/components/ion-accordion-group.js
Inter-DisplayRegular.woff2?v=3.19 referenced in /home/frappe/frappe-bench/apps/hrms/frontend/src/main.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
βœ“ 643 modules transformed.
[plugin:vite:reporter] 
(!) /home/frappe/frappe-bench/apps/hrms/frontend/src/components/RequestList.vue is dynamically imported by /home/frappe/frappe-bench/apps/hrms/frontend/src/components/RequestActionSheet.vue but also statically imported by /home/frappe/frappe-bench/apps/hrms/frontend/src/components/RequestPanel.vue, /home/frappe/frappe-bench/apps/hrms/frontend/src/views/expense_claim/Dashboard.vue, /home/frappe/frappe-bench/apps/hrms/frontend/src/views/leave/Dashboard.vue, dynamic import will not move module into another chunk.

../hrms/public/frontend/registerSW.js                                                      0.18 kB
../hrms/public/frontend/manifest.webmanifest                                               0.72 kB
../hrms/public/frontend/index.html                                                         8.25 kB β”‚ gzip:   1.09 kB
../hrms/public/frontend/assets/Inter-Regular-c342b1b7.woff2                              100.12 kB
../hrms/public/frontend/assets/Inter-Regular-edd1deaf.woff2                              100.79 kB
../hrms/public/frontend/assets/Inter-Thin-914c3fab.woff2                                 101.16 kB
../hrms/public/frontend/assets/Inter-Thin-918c5cbe.woff2                                 101.41 kB
../hrms/public/frontend/assets/Inter-DisplayBlack-b1d4e33d.woff2                         101.92 kB
../hrms/public/frontend/assets/Inter-DisplayThin-b64c173b.woff2                          102.15 kB
../hrms/public/frontend/assets/Inter-ExtraLight-25a4db7c.woff2                           102.87 kB
../hrms/public/frontend/assets/Inter-Light-211445a8.woff2                                103.27 kB
../hrms/public/frontend/assets/Inter-Black-05e55dd7.woff2                                103.59 kB
../hrms/public/frontend/assets/Inter-Black-bc2198e0.woff2                                104.52 kB
../hrms/public/frontend/assets/Inter-ExtraBold-8a72efb6.woff2                            104.99 kB
../hrms/public/frontend/assets/Inter-Bold-1dc41a58.woff2                                 105.21 kB
../hrms/public/frontend/assets/Inter-Medium-24fb6e39.woff2                               105.22 kB
../hrms/public/frontend/assets/Inter-DisplayLight-e40a858d.woff2                         105.34 kB
../hrms/public/frontend/assets/Inter-DisplayExtraBold-b7cc680a.woff2                     105.36 kB
../hrms/public/frontend/assets/Inter-DisplayMedium-12a4a358.woff2                        105.38 kB
../hrms/public/frontend/assets/Inter-SemiBold-51419407.woff2                             105.40 kB
../hrms/public/frontend/assets/Inter-DisplaySemiBold-856fcb49.woff2                      105.56 kB
../hrms/public/frontend/assets/Inter-DisplayBold-d9bf35ac.woff2                          105.57 kB
../hrms/public/frontend/assets/Inter-Light-87ed65f8.woff2                                105.64 kB
../hrms/public/frontend/assets/Inter-DisplayExtraLight-32095132.woff2                    105.87 kB
../hrms/public/frontend/assets/Inter-ExtraLight-4c337585.woff2                           105.96 kB
../hrms/public/frontend/assets/Inter-DisplayItalic-938db435.woff2                        106.12 kB
../hrms/public/frontend/assets/Inter-Italic-dd31ea31.woff2                               106.55 kB
../hrms/public/frontend/assets/Inter-ThinItalic-382fab25.woff2                           106.64 kB
../hrms/public/frontend/assets/Inter-Medium-a4e1e7e6.woff2                               106.72 kB
../hrms/public/frontend/assets/Inter-SemiBold-af44b8a2.woff2                             107.23 kB
../hrms/public/frontend/assets/Inter-DisplayBlackItalic-d561e8dd.woff2                   107.28 kB
../hrms/public/frontend/assets/Inter-Bold-2efd8e3c.woff2                                 107.40 kB
../hrms/public/frontend/assets/Inter-DisplayThinItalic-b70f1c61.woff2                    107.44 kB
../hrms/public/frontend/assets/Inter-ThinItalic-a3279f0a.woff2                           107.50 kB
../hrms/public/frontend/assets/Inter-Italic-950174d1.woff2                               107.51 kB
../hrms/public/frontend/assets/Inter-ExtraBold-74e72c6b.woff2                            107.55 kB
../hrms/public/frontend/assets/Inter-LightItalic-9ea2db78.woff2                          108.56 kB
../hrms/public/frontend/assets/Inter-BlackItalic-4ff7db4a.woff2                          108.59 kB
../hrms/public/frontend/assets/Inter-ExtraLightItalic-f0df46d0.woff2                     109.00 kB
../hrms/public/frontend/assets/Inter-BlackItalic-1cb529a7.woff2                          109.90 kB
../hrms/public/frontend/assets/Inter-DisplayBoldItalic-fef00c57.woff2                    110.20 kB
../hrms/public/frontend/assets/Inter-DisplaySemiBoldItalic-5e57e1d2.woff2                110.39 kB
../hrms/public/frontend/assets/Inter-DisplayMediumItalic-8968b5ab.woff2                  110.46 kB
../hrms/public/frontend/assets/Inter-BoldItalic-dc0d4194.woff2                           110.52 kB
../hrms/public/frontend/assets/Inter-ExtraBoldItalic-38e71f7c.woff2                      110.52 kB
../hrms/public/frontend/assets/Inter-DisplayLightItalic-151e9a11.woff2                   110.56 kB
../hrms/public/frontend/assets/Inter-SemiBoldItalic-daa7095c.woff2                       110.64 kB
../hrms/public/frontend/assets/Inter-DisplayExtraBoldItalic-e5a5984a.woff2               110.82 kB
../hrms/public/frontend/assets/Inter-MediumItalic-a2db9bea.woff2                         110.82 kB
../hrms/public/frontend/assets/Inter-DisplayExtraLightItalic-8eeb78f4.woff2              111.11 kB
../hrms/public/frontend/assets/Inter-LightItalic-5b94e337.woff2                          111.97 kB
../hrms/public/frontend/assets/Inter-ExtraLightItalic-7b39e865.woff2                     112.06 kB
../hrms/public/frontend/assets/Inter-MediumItalic-d4a7f5d9.woff2                         112.50 kB
../hrms/public/frontend/assets/Inter-SemiBoldItalic-a4f92da5.woff2                       112.55 kB
../hrms/public/frontend/assets/Inter-BoldItalic-f528d863.woff2                           112.58 kB
../hrms/public/frontend/assets/Inter-ExtraBoldItalic-2abc7ab1.woff2                      112.88 kB
../hrms/public/frontend/assets/Inter-Regular-b825f1bc.woff                               134.65 kB
../hrms/public/frontend/assets/Inter-Thin-2198e9fb.woff                                  136.95 kB
../hrms/public/frontend/assets/Inter-Black-9c79713b.woff                                 140.04 kB
../hrms/public/frontend/assets/Inter-Light-319f53ba.woff                                 141.53 kB
../hrms/public/frontend/assets/Inter-ExtraLight-1c06ef44.woff                            141.86 kB
../hrms/public/frontend/assets/Inter-Italic-b0b21adf.woff                                142.74 kB
../hrms/public/frontend/assets/Inter-Medium-f500bbb9.woff                                142.84 kB
../hrms/public/frontend/assets/Inter-SemiBold-3041a990.woff                              143.25 kB
../hrms/public/frontend/assets/Inter-ExtraBold-585b4ce1.woff                             143.55 kB
../hrms/public/frontend/assets/Inter-Bold-2b828bef.woff                                  143.71 kB
../hrms/public/frontend/assets/Inter-ThinItalic-f53f21de.woff                            144.41 kB
../hrms/public/frontend/assets/Inter-BlackItalic-7ecbf9fa.woff                           145.92 kB
../hrms/public/frontend/assets/Inter-LightItalic-289a60bc.woff                           148.44 kB
../hrms/public/frontend/assets/Inter-ExtraLightItalic-0e5667b1.woff                      148.69 kB
../hrms/public/frontend/assets/Inter-MediumItalic-d06751dd.woff                          149.18 kB
../hrms/public/frontend/assets/Inter-ExtraBoldItalic-b87f7d97.woff                       149.20 kB
../hrms/public/frontend/assets/Inter-SemiBoldItalic-5ce565c8.woff                        149.28 kB
../hrms/public/frontend/assets/Inter-BoldItalic-8bc8e0ff.woff                            149.42 kB
../hrms/public/frontend/assets/Inter.var-d30c3bd0.woff2                                  264.24 kB
../hrms/public/frontend/assets/Inter-Italic.var-d9f448e3.woff2                           297.27 kB
../hrms/public/frontend/assets/RequestList-34df9ee3.css                                    0.04 kB β”‚ gzip:   0.06 kB
../hrms/public/frontend/assets/FileUploaderView-60e84c6b.css                               0.04 kB β”‚ gzip:   0.06 kB
../hrms/public/frontend/assets/WorkflowActionSheet-ae154554.css                            0.13 kB β”‚ gzip:   0.13 kB
../hrms/public/frontend/assets/index-253c3aa8.css                                         92.85 kB β”‚ gzip:  14.62 kB
../hrms/public/frontend/assets/realtime-73015ad2.js                                        0.21 kB β”‚ gzip:   0.18 kB
../hrms/public/frontend/assets/notifications-b247677c.js                                   0.44 kB β”‚ gzip:   0.29 kB
../hrms/public/frontend/assets/formatters-97fad354.js                                      0.45 kB β”‚ gzip:   0.33 kB
../hrms/public/frontend/assets/ErrorMessage-0f5a9cc0.js                                    0.48 kB β”‚ gzip:   0.31 kB
../hrms/public/frontend/assets/TabButtons-6595f725.js                                      0.61 kB β”‚ gzip:   0.42 kB
../hrms/public/frontend/assets/swipe-back-b3ca051e.js                                      0.68 kB β”‚ gzip:   0.47 kB
../hrms/public/frontend/assets/status-tap-44fd8e4e.js                                      0.71 kB β”‚ gzip:   0.46 kB
../hrms/public/frontend/assets/claims-1553670b.js                                          0.72 kB β”‚ gzip:   0.33 kB
../hrms/public/frontend/assets/CustomIonModal-7e69332f.js                                  0.81 kB β”‚ gzip:   0.52 kB
../hrms/public/frontend/assets/InvalidEmployee-e4d515bd.js                                 0.87 kB β”‚ gzip:   0.57 kB
../hrms/public/frontend/assets/leaves-17c3492a.js                                          0.89 kB β”‚ gzip:   0.43 kB
../hrms/public/frontend/assets/SemicircleChart-2a369355.js                                 0.90 kB β”‚ gzip:   0.51 kB
../hrms/public/frontend/assets/QuickLinks-b12edea5.js                                      0.95 kB β”‚ gzip:   0.55 kB
../hrms/public/frontend/assets/focus-visible-9c13edeb.js                                   0.99 kB β”‚ gzip:   0.51 kB
../hrms/public/frontend/assets/md.transition-f2b9e262.js                                   1.04 kB β”‚ gzip:   0.57 kB
../hrms/public/frontend/assets/ProfileInfoModal-57b0a637.js                                1.14 kB β”‚ gzip:   0.61 kB
../hrms/public/frontend/assets/SalarySlipItem-6f5f5571.js                                  1.25 kB β”‚ gzip:   0.62 kB
../hrms/public/frontend/assets/EmployeeAdvanceBalance-fe60141e.js                          1.30 kB β”‚ gzip:   0.72 kB
../hrms/public/frontend/assets/EmployeeAvatar-eed3a10a.js                                  1.34 kB β”‚ gzip:   0.70 kB
../hrms/public/frontend/assets/SalaryDetailTable-7db7f426.js                               1.35 kB β”‚ gzip:   0.71 kB
../hrms/public/frontend/assets/ExpenseItems-3d6f47f6.js                                    1.35 kB β”‚ gzip:   0.70 kB
../hrms/public/frontend/assets/Home-365d5d4b.js                                            1.39 kB β”‚ gzip:   0.73 kB
../hrms/public/frontend/assets/FormattedField-8e162a67.js                                  1.41 kB β”‚ gzip:   0.73 kB
../hrms/public/frontend/assets/InsertLink-03a0e935.js                                      1.43 kB β”‚ gzip:   0.74 kB
../hrms/public/frontend/assets/Dashboard-d32105d5.js                                       1.48 kB β”‚ gzip:   0.81 kB
../hrms/public/frontend/assets/LeaveBalance-814d62cc.js                                    1.49 kB β”‚ gzip:   0.83 kB
../hrms/public/frontend/assets/List-9bd69b71.js                                            1.54 kB β”‚ gzip:   0.73 kB
../hrms/public/frontend/assets/BaseLayout-1fb5efbf.js                                      1.60 kB β”‚ gzip:   0.83 kB
../hrms/public/frontend/assets/RequestPanel-68eb7695.js                                    1.61 kB β”‚ gzip:   0.78 kB
../hrms/public/frontend/assets/List-ca5cfeeb.js                                            1.66 kB β”‚ gzip:   0.77 kB
../hrms/public/frontend/assets/Badge.vue_vue_type_script_setup_true_lang-0e6597c9.js       1.67 kB β”‚ gzip:   0.68 kB
../hrms/public/frontend/assets/LeaveRequestItem-845dfe68.js                                1.72 kB β”‚ gzip:   0.85 kB
../hrms/public/frontend/assets/InsertImage-4b1ca0b1.js                                     1.77 kB β”‚ gzip:   0.95 kB
../hrms/public/frontend/assets/index9-411dee2b.js                                          1.87 kB β”‚ gzip:   0.91 kB
../hrms/public/frontend/assets/EmployeeAdvanceIcon-e60b5448.js                             1.88 kB β”‚ gzip:   0.74 kB
../hrms/public/frontend/assets/List-23307327.js                                            1.90 kB β”‚ gzip:   0.81 kB
../hrms/public/frontend/assets/Avatar.vue_vue_type_script_setup_true_lang-9cf29371.js      1.96 kB β”‚ gzip:   0.86 kB
../hrms/public/frontend/assets/Dashboard-c527e80a.js                                       2.08 kB β”‚ gzip:   1.03 kB
../hrms/public/frontend/assets/EmployeeAdvanceItem-a1d3ce77.js                             2.16 kB β”‚ gzip:   1.02 kB
../hrms/public/frontend/assets/ExpenseAdvancesTable-1f2f2a33.js                            2.21 kB β”‚ gzip:   1.05 kB
../hrms/public/frontend/assets/ExpenseClaimSummary-092eeaf5.js                             2.24 kB β”‚ gzip:   0.80 kB
../hrms/public/frontend/assets/workflow-3081f822.js                                        2.24 kB β”‚ gzip:   1.00 kB
../hrms/public/frontend/assets/Form-2baf07f7.js                                            2.33 kB β”‚ gzip:   1.12 kB
../hrms/public/frontend/assets/ExpenseClaimItem-1739fc0a.js                                2.51 kB β”‚ gzip:   1.13 kB
../hrms/public/frontend/assets/Holidays-df544d68.js                                        2.61 kB β”‚ gzip:   1.12 kB
../hrms/public/frontend/assets/FileUploaderView-497c9d54.js                                2.63 kB β”‚ gzip:   1.30 kB
../hrms/public/frontend/assets/Notifications-bd0b3810.js                                   2.67 kB β”‚ gzip:   1.35 kB
../hrms/public/frontend/assets/Login-051ee83a.js                                           2.70 kB β”‚ gzip:   1.43 kB
../hrms/public/frontend/assets/Dashboard-c7047cd3.js                                       2.77 kB β”‚ gzip:   1.40 kB
../hrms/public/frontend/assets/FontColor-2cdcdcab.js                                       2.89 kB β”‚ gzip:   1.20 kB
../hrms/public/frontend/assets/ListFiltersActionSheet-168afb68.js                          2.90 kB β”‚ gzip:   1.23 kB
../hrms/public/frontend/assets/CheckInPanel-d6fabf5b.js                                    2.92 kB β”‚ gzip:   1.40 kB
../hrms/public/frontend/assets/Detail-74b8405e.js                                          3.28 kB β”‚ gzip:   1.67 kB
../hrms/public/frontend/assets/WorkflowActionSheet-b6f8e334.js                             3.69 kB β”‚ gzip:   1.82 kB
../hrms/public/frontend/assets/Form-0c136e94.js                                            3.81 kB β”‚ gzip:   1.53 kB
../hrms/public/frontend/assets/Profile-b423abea.js                                         4.54 kB β”‚ gzip:   2.12 kB
../hrms/public/frontend/assets/FormField-c81cf106.js                                       4.80 kB β”‚ gzip:   1.78 kB
../hrms/public/frontend/assets/input-shims-90666d3d.js                                     5.12 kB β”‚ gzip:   2.20 kB
../hrms/public/frontend/assets/InsertVideo-f4f3d0f2.js                                     5.48 kB β”‚ gzip:   2.27 kB
../hrms/public/frontend/assets/ExpensesTable-978d76f0.js                                   5.66 kB β”‚ gzip:   2.38 kB
../hrms/public/frontend/assets/ExpenseTaxesTable-5e2c15b6.js                               5.91 kB β”‚ gzip:   2.50 kB
../hrms/public/frontend/assets/ListView-188fd0bd.js                                        6.33 kB β”‚ gzip:   2.93 kB
../hrms/public/frontend/assets/Form-4219f8b4.js                                            6.61 kB β”‚ gzip:   2.26 kB
../hrms/public/frontend/assets/ios.transition-4f81cd0d.js                                  9.47 kB β”‚ gzip:   2.69 kB
../hrms/public/frontend/assets/RequestList-632a2944.js                                    19.04 kB β”‚ gzip:   4.81 kB
../hrms/public/frontend/assets/FormView-f815124b.js                                       26.92 kB β”‚ gzip:   9.35 kB
../hrms/public/frontend/assets/index-4bb445d5.js                                       1,038.20 kB β”‚ gzip: 304.43 kB

(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
Killed
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed: yarn build
    at checkExecSyncError (node:child_process:890:11)
    at execSync (node:child_process:962:15)
    at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:451:5)
    at execute (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:128:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  status: 137,
  signal: null,
  output: [ null, null, null ],
  pid: 257,
  stdout: null,
  stderr: null
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module>
    main()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main
    click.Group(commands=commands)(prog_name="bench")
  File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py", line 72, in build
    bundle(
  File "/home/frappe/frappe-bench/apps/frappe/frappe/build.py", line 257, in bundle
    frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 97, in popen
    raise subprocess.CalledProcessError(return_, command)
subprocess.CalledProcessError: Command 'yarn run production --apps hrms --run-build-command' returned non-zero exit status 1.
ERROR: bench build --app hrms
subprocess.CalledProcessError: Command 'bench build --app hrms' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/bench", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/usr/local/lib/python3.11/site-packages/bench/cli.py", line 132, in cli
    bench_command()
  File "/usr/local/lib/python3.11/site-packages/bench/commands/make.py", line 167, in get_app
    get_app(
  File "/usr/local/lib/python3.11/site-packages/bench/app.py", line 444, in get_app
    app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
  File "/usr/local/lib/python3.11/site-packages/bench/utils/render.py", line 126, in wrapper_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/bench/app.py", line 242, in install
    install_app(
  File "/usr/local/lib/python3.11/site-packages/bench/app.py", line 586, in install_app
    build_assets(bench_path=bench_path, app=app)
  File "/usr/local/lib/python3.11/site-packages/bench/utils/bench.py", line 351, in build_assets
    exec_cmd(command, cwd=bench_path, env={"BENCH_DEVELOPER": "1"})
  File "/usr/local/lib/python3.11/site-packages/bench/utils/__init__.py", line 158, in exec_cmd
    raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app hrms

$       

Your server doesn’t have enough RAM to build assets. Maybe add some swap temporarily or upgrade it?

Looks like you’re using docker on mac, you should try allocating more RAM to docker in that case.

1 Like

Hey @ankush thanks for helping.

I have updated memory options, Now its installing hrms but there’s an issue with installation. Giving me following error, and messing up with entire frontend.

*Logs

2023-12-28 23:45:42 frappedocker-scheduler-1    |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1470, in get_app_path
2023-12-28 23:45:42 frappedocker-scheduler-1    |     return get_pymodule_path(app_name, *joins)
2023-12-28 23:45:42 frappedocker-scheduler-1    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-12-28 23:45:42 frappedocker-scheduler-1    |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1500, in get_pymodule_path
2023-12-28 23:45:42 frappedocker-scheduler-1    |     return abspath(join(dirname(get_module(scrub(modulename)).__file__ or ""), *joins))
2023-12-28 23:45:42 frappedocker-scheduler-1    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-12-28 23:45:42 frappedocker-scheduler-1    |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1441, in get_module
2023-12-28 23:45:42 frappedocker-scheduler-1    |     return importlib.import_module(modulename)
2023-12-28 23:45:42 frappedocker-scheduler-1    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-12-28 23:45:42 frappedocker-scheduler-1    |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
2023-12-28 23:45:42 frappedocker-scheduler-1    |     return _bootstrap._gcd_import(name[level:], package, level)
2023-12-28 23:45:42 frappedocker-scheduler-1    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-12-28 23:45:42 frappedocker-scheduler-1    |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
2023-12-28 23:45:42 frappedocker-scheduler-1    |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
2023-12-28 23:45:42 frappedocker-scheduler-1    |   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
2023-12-28 23:45:42 frappedocker-scheduler-1    | ModuleNotFoundError: No module named 'hrms'

*Login Page Screenshot

You need to reinstall hrms. If you did not make your own image then using the default docker image the module after restarting the container needs to be reinstalled.

Hi there, please see: https://github.com/frappe/frappe_docker/blob/main/docs/custom-apps.md

In short, you don’t install hrms with β€œbench get-app”. The hrms app needs to be included in your (custom) image already at build time. Then when you create your site, you will install the app to the site with the bench command as usual.

2 Likes

Could you elaborate further?

The HRMS github repo says to use bench get-app hrms followed by bench --site sitename install-app hrms.

I’m very new to ERPNext and also having a hard time properly installing HRMS.

@sugilmath this may not apply to you if you are not setting up containers. OP was trying to install in docker (pwd.yml). If you are installing in a regular OS, you can disregard my comment.

If you are in fact using docker, you’ll need to follow instructions in the link I gave above.

i’m in almost the same environment as OP (MBP M1 and installing in Docker pwd.yml as the official Github repo guides)

In that case, you’ll need to build the docker image first according to the frappe/frappe_docker repo instructions linked above, making sure to include the HRMS app in that image. That replaces the β€œbench get-app” from a regular OS install. Then, you’ll use that image in your .yml file.

Once your project and containers are up, you’ll create your site and use the β€œbench install-app” command to install the HRMS app for your site.