Skip to main content
Question

Modern UI changes package publish getting errors


Forum|alt.badge.img
  • Jr Varsity II
  • 17 replies

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

10 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 II
  • 17 replies
  • April 16, 2025

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

 


Forum|alt.badge.img+8
  • Captain II
  • 396 replies
  • 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 II
  • 17 replies
  • April 16, 2025

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

 

 


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

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


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 17 replies
  • April 16, 2025
varthinibhaskaran18 wrote:

@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 II
  • 17 replies
  • April 17, 2025
varthinibhaskaran18 wrote:

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+1

 

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 II
  • 17 replies
  • April 17, 2025

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

 


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