Skip to main content
Question

Modern UI changes package publish getting errors

  • April 15, 2025
  • 11 replies
  • 282 views

Forum|alt.badge.img

hello everyone , 
as per our requirement classic to converted into modern UI, while publishing the package getting error


ts file code 
 

HTML File code 
 

please suggest how to resolve these error

11 replies

Forum|alt.badge.img+1

@Siddu 

Were you able to build the screen PM304500? Can you try building using the following command and share the error?

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

Lastly, can you please share the folder structure and the location of the view.ts file? If the view.ts file is in the same folder as <screenID>.ts file, it should be imported as shown below (notice the “./views”)

 



 

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • April 16, 2025

@varthinibhaskaran18 after running the following command getting below error
“Task never defined: screenIds=PM304500”

 


Forum|alt.badge.img+8
  • Captain II
  • April 16, 2025

Hi ​@Siddu 

 

Have you placed the screen files in the extensions folder of that screen?

Have you already run npm run getmodules?

Also, you can try re-running build-dev in the /screen folder

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • April 16, 2025

@aiwan , i have  already run npm run getmodules And while publishing only getting error

 

 


Forum|alt.badge.img+8
  • Captain II
  • April 16, 2025

Could you try to run build-dev in the screens folder rather than FrontendSources?


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • April 16, 2025

@Siddu 

Were you able to build the screen PM304500? Can you try building using the following command and share the error?

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

Lastly, can you please share the folder structure and the location of the view.ts file? If the view.ts file is in the same folder as <screenID>.ts file, it should be imported as shown below (notice the “./views”)

 



 

 

@varthinibhaskaran18 tried same as above getting same 
 


Folder Structure
 

 

Typescript
 

 


Forum|alt.badge.img+1

On which version of Acumatica are you on? if its 25R1, then please use

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

Please update if you face any errors.

Thank you!


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • April 17, 2025

On which version of Acumatica are you on? if its 25R1, then please use

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

Please update if you face any errors.

Thank you!

@varthinibhaskaran18  we are using 25R1 And After running this command : npm run build-dev --- --env screenIds=PM304500 

Successfully compiled

but when publishing the package getting error
 

 


harutyungevorgyan
Jr Varsity I
Forum|alt.badge.img+2

 

Hello @Siddu ,

Just a quick reminder —
Please make sure you're following the steps exactly as laid out in the Modern UI guide. Right now, it looks like you're running the command in FrontendSources, but according to the guide, it should actually be run inside FrontendSources/screen.

Also, please stick closely to the Acumatica guidance. That way, we can be sure any issues you're facing aren’t because of missed or incorrect steps. It'll help us troubleshoot much faster and more accurately. Thanks a ton!


 

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • April 17, 2025

@harutyungevorgyan i followed same, but while publishing package getting error
 

 


@Siddu 

Small change required in your typescript, see below code

I hope it will help you.