Skip to main content
Answer

Modern UI compiling single screen fails

  • November 3, 2024
  • 6 replies
  • 221 views

Forum|alt.badge.img+1

Per the documents I am trying to compile one screen, however I get the following error.

PS C:\Program Files\Acumatica ERP\ACU-1\FrontendSources\screen> npm run build-dev -- --env screenIds=AR301000

> screen@0.1.0 build-dev
> cross-env node --max_old_space_size=6144 --optimize_for_size --stack_size=6144 --trace-warnings ./node_modules/webpack/bin/webpack --progress screenIds=AR301000

[webpack-cli] 'screenIds=AR301000' is an invalid value for the --progress option. Only 'profile' is allowed.

 

I have tried both folders  “FrontendSources\screen\” & “FrontendSources\”

 

Attached is all text from my console with many different attempts, some successful when “npm run build-dev” is run, others not.

Best answer by vyakutenko

@Leif please try to use --- instead of --

So the command will be

npm run build-dev --- --env screenIds=AR301000

6 replies

Patrick Chen
Varsity II
Forum|alt.badge.img+2
  • Varsity II
  • November 5, 2024

Did you run 'npm run getmodules'  at \frontendsources ?


Forum|alt.badge.img+1
  • Author
  • Varsity I
  • November 11, 2024

Yes


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • January 22, 2025

Hi ​@Leif were you able to find a solution? Thank you!


Forum|alt.badge.img+1
  • Author
  • Varsity I
  • January 22, 2025

nope


  • Acumatica Employee
  • Answer
  • May 7, 2025

@Leif please try to use --- instead of --

So the command will be

npm run build-dev --- --env screenIds=AR301000


Forum|alt.badge.img+8
  • Captain II
  • May 13, 2025

Hi ​@Leif 

 

as ​@vyakutenko said using --- instead of -- should work, I believe this was updated in 25R1.

So, if you are on 25.1 or later use ---

if you are on a version prior to 25.1 use --