Skip to main content
Solved

Modern UI Customization 2026R1: npm Build Succeeds but Publish Fails (Official Extension Related Error)

  • May 19, 2026
  • 15 replies
  • 104 views

Forum|alt.badge.img+6

I have a project. The npm build for the Modern UI was successful, but an error occurs when publishing the project.
 

 

After checking the error details, it seems to be related to an official extension. I have a completely clean installation of Acumatica 2026 R1. I have not modified any system files or code at all. How can I resolve this?
 

 

Best answer by VardanV

@VardanV Thank you, I appreciate your help.  yes, I run npm run getmodules from the FrontendSources folder successfully. However, still published with the same error after that.

Why are you using the original Screen ID for your extensions?

Your changes for the .ts and .html files need to be added under the SO/SO302000/extensions/ folder. For your .ts and .html files, you should not use the original SO302000 name. Instead, please add additional text to the file names to differentiate your extension from the original screen.

For example:

  • SO302000_LineSplitCstMod.ts
  • SO302000_LineSplitCstMod.html

Please make this change and try to publish the package again.

If the error is still not resolved, please try publishing the package without the shipment file extensions. If the package publishes successfully without them, it means there is an issue inside the code. In that case, the issue can be identified by commenting out parts of the code and enabling them step by step to find the incorrect section.

 

15 replies

Forum|alt.badge.img+3

@ray20 Try with removing MUI files for that screen & publish package and again add MUI files & then publish it again with MUI files.


mohammadnawaz51
Jr Varsity II
Forum|alt.badge.img+6

There are a few known issues that can occur during package publishing in instances using the Modern UI. Please review the following points:

1. The tenant name in the instance should not contain spaces or dots, as this can cause package publishing issues.

2. There is an option to clear temporary files stored on the server, which typically requires assistance from Acumatica.

   * You can first remove the Modern UI files and try publishing the package using the Classic UI packages.
   * If the package publishes successfully, then coordinate with Acumatica to clear the temporary server files.

3. If the above two points do not match your scenario, please review the issue with the developer to check whether the problem is related to customization conflicts.


Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+16

@ray20 

There should not be a space/dot in the tenant name in the instance where we can see package publishing issues


Forum|alt.badge.img+6
  • Author
  • Captain II
  • May 19, 2026

@Manikanta Dhulipudi I believe there is no space nor dot in the tenant name.


Forum|alt.badge.img+6
  • Author
  • Captain II
  • May 19, 2026

@mohammadnawaz51 ​@Abhishek Niikam 
Thank you , but if I publish the package without modern files, successfully .Keep the package as published status and then add the modern files to the package, publish again, failed with error stil.

The only workaround is first publish witout issued modern files, then then npm them separately.


VardanV
Varsity I
Forum|alt.badge.img+1
  • Varsity I
  • May 20, 2026

Run the command below and then try to publish again.

npm run getmodules

To be safe, you can also run the command below, although the previous command should be sufficient, as it worked successfully in my case.

npm run build-dev

 


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • May 20, 2026

@ray20 

This is definitely environment/customization specific. I did a quick test on SalesDemo 26R1 and got no errors.

Maybe share simple customization project that reproduces error for additional assistance.


Forum|alt.badge.img+6
  • Author
  • Captain II
  • May 20, 2026

@RohitRattan88 This is my issue project


Forum|alt.badge.img+6
  • Author
  • Captain II
  • May 21, 2026

@VardanV Thank you for your help. Looks like npm run getmodules does not work on my end.  do you know why?
 


But I can run npm run build-dev sucessfully, but after that, still publish with errors.

[2026-05-21 03:09:19.938] npm run build failed with output:

> screen@0.1.0 build
> cross-env node --max_old_space_size=6144 --optimize_for_size --stack_size=6144 --trace-warnings ../node_modules/webpack/bin/webpack -- --env production --env tenant=Company screenIds=SO302000

ts-loader: Using ts-patch/compiler@5.5.2. This version may or may not be compatible with ts-loader.
[11:08:43.843]: [36mIn HTML extension 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000' child node 'TEMPLATE' has MODIFY attribute with '#fsShippingInfo-Shipping [name='ShipVia']', but screen HTML doesn't contain any elements that satisfies such querySelector[39m
[11:08:43.843]: [36mError occured during HTML merge of 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000'. Error : Error: In HTML extension 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000' child node 'TEMPLATE' has MODIFY attribute with '#fsShippingInfo-Shipping [name='ShipVia']', but screen HTML doesn't contain any elements that satisfies such querySelector[39m
[11:08:43.843]: [36mError occured during HTML merge for 'SO302000', original source will be used instead. Error: Error: In HTML extension 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000' child node 'TEMPLATE' has MODIFY attribute with '#fsShippingInfo-Shipping [name='ShipVia']', but screen HTML doesn't contain any elements that satisfies such querySelector[39m
More build info can be found in logs:
E:\Program Files\Acumatica ERP\NodeTemp\Modern\_acu_build-tools-660320758643500.log
E:\Program Files\Acumatica ERP\NodeTemp\Modern\_acu_transformers-660320765606900.log
[1m[31mERROR[39m[22m in [1m./src/customizationScreens/Company/screens/SO/SO302000/SO302000.html[39m[22m
[1mModule build [1m[31mfailed[39m[22m[1m (from ../node_modules/build-tools/html-merge-loader.js):
[1m[31mError[39m[22m[1m: In HTML extension 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000' child node 'TEMPLATE' has MODIFY attribute with '#fsShippingInfo-Shipping [name='ShipVia']', but screen HTML doesn't contain any elements that satisfies such querySelector
    at getElementToModify (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:119:19)
    at processCustomizations (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:484:41)
    at E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:411:21
    at Array.forEach (<anonymous>)
    at processHtml (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:394:27)
    at Object.<anonymous> (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:312:28)
    at Generator.next (<anonymous>)
    at E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\tslib\tslib.js:170:75
    at new Promise (<anonymous>)
    at Object.__awaiter (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\tslib\tslib.js:166:16)[39m[22m
 @ ./src/customizationScreens/Company/screens/SO/SO302000/SO302000.ts
 @ ./src/screens/SO/SO302000/SO302000.ts 14:0-136
 

To add, actually I have implemented 10+ screens, other screen publish sucessfully, only the shipment screen give errors.


VardanV
Varsity I
Forum|alt.badge.img+1
  • Varsity I
  • May 21, 2026

@VardanV Thank you for your help. Looks like npm run getmodules does not work on my end.  do you know why?
 


But I can run npm run build-dev sucessfully, but after that, still publish with errors.

[2026-05-21 03:09:19.938] npm run build failed with output:

> screen@0.1.0 build
> cross-env node --max_old_space_size=6144 --optimize_for_size --stack_size=6144 --trace-warnings ../node_modules/webpack/bin/webpack -- --env production --env tenant=Company screenIds=SO302000

ts-loader: Using ts-patch/compiler@5.5.2. This version may or may not be compatible with ts-loader.
[11:08:43.843]: [36mIn HTML extension 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000' child node 'TEMPLATE' has MODIFY attribute with '#fsShippingInfo-Shipping [name='ShipVia']', but screen HTML doesn't contain any elements that satisfies such querySelector[39m
[11:08:43.843]: [36mError occured during HTML merge of 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000'. Error : Error: In HTML extension 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000' child node 'TEMPLATE' has MODIFY attribute with '#fsShippingInfo-Shipping [name='ShipVia']', but screen HTML doesn't contain any elements that satisfies such querySelector[39m
[11:08:43.843]: [36mError occured during HTML merge for 'SO302000', original source will be used instead. Error: Error: In HTML extension 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000' child node 'TEMPLATE' has MODIFY attribute with '#fsShippingInfo-Shipping [name='ShipVia']', but screen HTML doesn't contain any elements that satisfies such querySelector[39m
More build info can be found in logs:
E:\Program Files\Acumatica ERP\NodeTemp\Modern\_acu_build-tools-660320758643500.log
E:\Program Files\Acumatica ERP\NodeTemp\Modern\_acu_transformers-660320765606900.log
[1m[31mERROR[39m[22m in [1m./src/customizationScreens/Company/screens/SO/SO302000/SO302000.html[39m[22m
[1mModule build [1m[31mfailed[39m[22m[1m (from ../node_modules/build-tools/html-merge-loader.js):
[1m[31mError[39m[22m[1m: In HTML extension 'E:\Program Files\Acumatica ERP\Modern\FrontendSources\screen\src\screens\SO\SO302000\extensions\SO302000_ShopForRates.html' for screen 'SO302000' child node 'TEMPLATE' has MODIFY attribute with '#fsShippingInfo-Shipping [name='ShipVia']', but screen HTML doesn't contain any elements that satisfies such querySelector
    at getElementToModify (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:119:19)
    at processCustomizations (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:484:41)
    at E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:411:21
    at Array.forEach (<anonymous>)
    at processHtml (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:394:27)
    at Object.<anonymous> (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\build-tools\html-merge-loader.js:312:28)
    at Generator.next (<anonymous>)
    at E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\tslib\tslib.js:170:75
    at new Promise (<anonymous>)
    at Object.__awaiter (E:\Program Files\Acumatica ERP\Modern\FrontendSources\node_modules\tslib\tslib.js:166:16)[39m[22m
 @ ./src/customizationScreens/Company/screens/SO/SO302000/SO302000.ts
 @ ./src/screens/SO/SO302000/SO302000.ts 14:0-136
 

To add, actually I have implemented 10+ screens, other screen publish sucessfully, only the shipment screen give errors.

You need to run npm run getmodules from the FrontendSources folder, not from inside any of the subfolders.


Forum|alt.badge.img+6
  • Author
  • Captain II
  • May 21, 2026

@VardanV Thank you, I appreciate your help.  yes, I run npm run getmodules from the FrontendSources folder successfully. However, still published with the same error after that.


VardanV
Varsity I
Forum|alt.badge.img+1
  • Varsity I
  • Answer
  • May 21, 2026

@VardanV Thank you, I appreciate your help.  yes, I run npm run getmodules from the FrontendSources folder successfully. However, still published with the same error after that.

Why are you using the original Screen ID for your extensions?

Your changes for the .ts and .html files need to be added under the SO/SO302000/extensions/ folder. For your .ts and .html files, you should not use the original SO302000 name. Instead, please add additional text to the file names to differentiate your extension from the original screen.

For example:

  • SO302000_LineSplitCstMod.ts
  • SO302000_LineSplitCstMod.html

Please make this change and try to publish the package again.

If the error is still not resolved, please try publishing the package without the shipment file extensions. If the package publishes successfully without them, it means there is an issue inside the code. In that case, the issue can be identified by commenting out parts of the code and enabling them step by step to find the incorrect section.

 


Forum|alt.badge.img+6
  • Author
  • Captain II
  • May 21, 2026

@VardanV 
You are a hero, you saved my day. Thank you so much for sorting out this tricky npm/publish issue!


VardanV
Varsity I
Forum|alt.badge.img+1
  • Varsity I
  • May 21, 2026

@VardanV 
You are a hero, you saved my day. Thank you so much for sorting out this tricky npm/publish issue!

you are welcome!


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • May 21, 2026

@VardanV Thank you, I appreciate your help.  yes, I run npm run getmodules from the FrontendSources folder successfully. However, still published with the same error after that.

Why are you using the original Screen ID for your extensions?

@VardanV, thats what stood out to me in the error screenshot attached, hence the request for customization project. Glad you were able to catch that.

Cheers.