Skip to main content
Solved

Errors Encountered with npm Commands While Customizing Modern UI in 24R2 (24.193.0116) Preview

  • 9 September 2024
  • 3 replies
  • 143 views

Hi Team,

I’m working on customizing the Modern UI in the 24R2 (24.193.0116) preview version. Specifically, I’m adding a new tab to the Sales Order screen and have created a new field, UsrIsMagentoOrder, which I’ve included in the corresponding .html and .ts files.

However, I’m encountering issues when running the following commands:

  • npm run getmodules
  • npm run build

 

npm run getmodules
npm run build

I’m receiving errors with these commands and am unable to see the changes reflected on the screen. Any guidance on resolving these errors would be greatly appreciated.

Thank you!

Best answer by mehdihasanov

Try building it in the FrontendSources\screen folder of your instance
Modern UI: How to Build the Source Code for the Modern UI Development

View original
Did this topic help you find an answer to your question?

3 replies

mehdihasanov
Acumatica Employee
  • Acumatica Employee
  • 8 replies
  • Answer
  • September 16, 2024

Try building it in the FrontendSources\screen folder of your instance
Modern UI: How to Build the Source Code for the Modern UI Development


corey63
Freshman I
  • Freshman I
  • 4 replies
  • October 11, 2024

I am running into the same EXACT issue with the GULP command.  Has something to with spawning the window.  I have reinstalled node.js and gulp and tried different instances.    Lowered UNC,  turned of firewalls etc.    Let me know if you find something.   (Windows Server 2022 Datacenter)


corey63
Freshman I
  • Freshman I
  • 4 replies
  • October 17, 2024

I have found the issue I was facing.  node.js version 20+ has a security patch that does not allow the code to use the child spawn process.    I downgraded my node.js to version 19.9 on the server and I was successful in running everything on 2024 R2.   I did get notices that my version was out of date, but it was still successful. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings