Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0055175
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Coremajoralways2024-04-11 17:052024-04-15 12:44
ReportercbernerView Statuspublic 
Assigned Tocberner 
PrioritynormalResolutionfixedFixed in Version24Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0055175: ant build with vite fail in arm64 environments (i.e. AWS cloud - Graviton)

DescriptionWhen 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)
Steps To Reproduce1. 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.
Proposed SolutionAn option would be to add the mentioned dependency as an optionalDependency of core2. That should fix the original issue, further testing is required.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
caused by feature request 0054570 closedcberner CRA should be replaced by an alternative, Vite 

-  Notes
(0163109)
hgbot (developer)
2024-04-11 17:07

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1458 [^]
(0163127)
hgbot (developer)
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 (developer)
2024-04-12 09:31

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1458 [^]

- Issue History
Date Modified Username Field Change
2024-04-11 17:05 cberner New Issue
2024-04-11 17:05 cberner Assigned To => cberner
2024-04-11 17:05 cberner Triggers an Emergency Pack => No
2024-04-11 17:05 cberner Status new => acknowledged
2024-04-11 17:05 cberner Relationship added caused by 0054570
2024-04-11 17:07 hgbot Note Added: 0163109
2024-04-11 17:35 shuehner Issue Monitored: shuehner
2024-04-12 09:31 hgbot Resolution open => fixed
2024-04-12 09:31 hgbot Status acknowledged => closed
2024-04-12 09:31 hgbot Fixed in Version => 24Q3
2024-04-12 09:31 hgbot Note Added: 0163127
2024-04-12 09:31 hgbot Note Added: 0163128
2024-04-15 12:44 shuehner Summary Cloud instances fail ant build on vite environment => ant build with vite fail in arm64 environments (i.e. AWS cloud - Graviton)


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker