Openbravo Issue Tracking System - POS2
View Issue Details
0055175POS2Corepublic2024-04-11 17:052024-04-15 12:44
cberner 
cberner 
normalmajoralways
closedfixed 
5
 
24Q3 
No
0055175: ant build with vite fail in arm64 environments (i.e. AWS cloud - Graviton)
When running ant build in a cloud instance the following error is thrown:

Error: 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.
    at requireWithFriendlyError (/opt/OpenbravoERP/modules/org.openbravo.core2/web-jspack/org.openbravo.core2/node_modules/rollup/dist/native.js:87:9)
1. Setup or as for an AWS instance(with arm64 architecture) with Openbravo
2. Run ant build in core2 module

Check that the mentioned error appears.
An option would be to add the mentioned dependency as an optionalDependency of core2. That should fix the original issue, further testing is required.
No tags attached.
caused by feature request 0054570 closed cberner CRA should be replaced by an alternative, Vite 
Issue History
2024-04-11 17:05cbernerNew Issue
2024-04-11 17:05cbernerAssigned To => cberner
2024-04-11 17:05cbernerTriggers an Emergency Pack => No
2024-04-11 17:05cbernerStatusnew => acknowledged
2024-04-11 17:05cbernerRelationship addedcaused by 0054570
2024-04-11 17:07hgbotNote Added: 0163109
2024-04-11 17:35shuehnerIssue Monitored: shuehner
2024-04-12 09:31hgbotResolutionopen => fixed
2024-04-12 09:31hgbotStatusacknowledged => closed
2024-04-12 09:31hgbotFixed in Version => 24Q3
2024-04-12 09:31hgbotNote Added: 0163127
2024-04-12 09:31hgbotNote Added: 0163128
2024-04-15 12:44shuehnerSummaryCloud instances fail ant build on vite environment => ant build with vite fail in arm64 environments (i.e. AWS cloud - Graviton)

Notes
(0163109)
hgbot   
2024-04-11 17:07   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1458 [^]
(0163127)
hgbot   
2024-04-12 09:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 6f83d0cc2625ca9e96e0f23cb7639180e10880ed
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 11-04-2024 17:06:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/6f83d0cc2625ca9e96e0f23cb7639180e10880ed [^]

Fixes ISSUE-55175: Cloud instances fail ant build on vite environment

Some instances have an arm64 architecture instead of an x86_64 one, as
such they need different rollup dependencies. The arm64 dependency was
added to the package.json and the package-lock.json was recreated.

---
M web-jspack/org.openbravo.core2/package-lock.json
M web-jspack/org.openbravo.core2/package.json
---
(0163128)
hgbot   
2024-04-12 09:31   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1458 [^]