From 7cf54cc4405130df3e27237ce3f1356224273a8d Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Thu, 17 Jul 2025 22:15:11 +0530 Subject: [PATCH] mgr/dashboard: add rollup as optional deps - for arm64 hitting (Use `node --trace-warnings ...` to show where the warning was created) NX Cannot find module @rollup/rollup-linux-arm64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory. Pass --verbose to see the stacktrace. - due tit this make check arm64 failing - added the fix as per https://github.com/vitejs/vite/discussions/15532#discussioncomment-13369584 Signed-off-by: Afreen Misbah --- src/pybind/mgr/dashboard/frontend/package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pybind/mgr/dashboard/frontend/package.json b/src/pybind/mgr/dashboard/frontend/package.json index 404d96749ce84..ead033b7e903a 100644 --- a/src/pybind/mgr/dashboard/frontend/package.json +++ b/src/pybind/mgr/dashboard/frontend/package.json @@ -155,5 +155,8 @@ }, "cypress-cucumber-preprocessor": { "stepDefinitions": "cypress/e2e/common" + }, + "optionalDependencies": { + "@rollup/rollup-linux-x64-gnu": "4.22.4" } } -- 2.39.5