I have the following issue with Modern UI:
In one package I create a column.
In another package I add a field / logic that depends on that column.
Everything works fine when I develop Modern UI in Visual Studio — after build, all changes are visible on the screen and work correctly.
But when I add Modern UI files into packages and publish them in another instance of Acumatica ERP, I get errors (field/column not found).
I understand that this approach is not recommended, but I still need to make it work.
Is there any way to handle this scenario?
[2026-03-26 14:54:27.199] 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=AR301000,AR303000,BZ101001,BZ101007,BZ201520,BZ401005,BZ401022,BZ501011,BZ501012,BZ501013,BZ501014,BZ501015,BZ501017,BZ501041,BZ501066,BZ501071,BZIMAGES,CR302000,IN202000,IN202500,IN203000,SO201000,SO301000,SO302000,SO303000,SO503000,TX205000ts-loader: Using ts-patch/compiler@5.5.2. This version may or may not be compatible with ts-loader.[18:52:50.785]: [36mIn HTML extension 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\AR\AR303000\extensions\AR303000_BZSalespersons.html' for screen 'AR303000' child node 'FIELD' has AFTER attribute with '#bzColumnThirdHeader [name='UsrBZIsWoocommerceCustomer']', but screen HTML doesn't contain any elements that satisfies such querySelector[39m[18:52:50.785]: [36mError occured during HTML merge of 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\AR\AR303000\extensions\AR303000_BZSalespersons.html' for screen 'AR303000'. Error : Error: In HTML extension 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\AR\AR303000\extensions\AR303000_BZSalespersons.html' for screen 'AR303000' child node 'FIELD' has AFTER attribute with '#bzColumnThirdHeader [name='UsrBZIsWoocommerceCustomer']', but screen HTML doesn't contain any elements that satisfies such querySelector[39m[18:52:50.785]: [36mError occured during HTML merge for 'AR303000', original source will be used instead. Error: Error: In HTML extension 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\AR\AR303000\extensions\AR303000_BZSalespersons.html' for screen 'AR303000' child node 'FIELD' has AFTER attribute with '#bzColumnThirdHeader [name='UsrBZIsWoocommerceCustomer']', but screen HTML doesn't contain any elements that satisfies such querySelector[39m[18:52:51.755]: [36mIn HTML extension 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\SO\SO301000\extensions\SO301000_BZSOInfoToInvoice.html' for screen 'SO301000' child node 'TEMPLATE' has MODIFY attribute with '#fsColumnD-Order', but screen HTML doesn't contain any elements that satisfies such querySelector[39m[18:52:51.755]: [36mError occured during HTML merge of 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\SO\SO301000\extensions\SO301000_BZSOInfoToInvoice.html' for screen 'SO301000'. Error : Error: In HTML extension 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\SO\SO301000\extensions\SO301000_BZSOInfoToInvoice.html' for screen 'SO301000' child node 'TEMPLATE' has MODIFY attribute with '#fsColumnD-Order', but screen HTML doesn't contain any elements that satisfies such querySelector[39m[18:52:51.755]: [36mError occured during HTML merge for 'SO301000', original source will be used instead. Error: Error: In HTML extension 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\SO\SO301000\extensions\SO301000_BZSOInfoToInvoice.html' for screen 'SO301000' child node 'TEMPLATE' has MODIFY attribute with '#fsColumnD-Order', but screen HTML doesn't contain any elements that satisfies such querySelector[39mMore build info can be found in logs:C:\Program Files\Acumatica ERP\NodeTemp\WSCNew\_acu_build-tools-33676496884600.logC:\Program Files\Acumatica ERP\NodeTemp\WSCNew\_acu_transformers-33676506858200.log[1m[31mERROR[39m[22m in [1m./src/screens/AR/AR303000/AR303000.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 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\AR\AR303000\extensions\AR303000_BZSalespersons.html' for screen 'AR303000' child node 'FIELD' has AFTER attribute with '#bzColumnThirdHeader [name='UsrBZIsWoocommerceCustomer']', but screen HTML doesn't contain any elements that satisfies such querySelector at getElementToModify (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:104:19) at processDirectionCommand (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:150:33) at processCustomizations (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:497:21) at C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:383:21 at Array.forEach (<anonymous>) at processHtml (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:366:27) at Object.<anonymous> (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:275:28) at Generator.next (<anonymous>) at C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\tslib\tslib.js:115:75 at new Promise (<anonymous>)[39m[22m @ ./src/screens/AR/AR303000/AR303000.ts[1m[31mERROR[39m[22m in [1m./src/screens/SO/SO301000/SO301000.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 'C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\src\customizationScreens\Company\screens\SO\SO301000\extensions\SO301000_BZSOInfoToInvoice.html' for screen 'SO301000' child node 'TEMPLATE' has MODIFY attribute with '#fsColumnD-Order', but screen HTML doesn't contain any elements that satisfies such querySelector at getElementToModify (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:104:19) at processCustomizations (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:452:41) at C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:383:21 at Array.forEach (<anonymous>) at processHtml (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:366:27) at Object.<anonymous> (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\build-tools\html-merge-loader.js:275:28) at Generator.next (<anonymous>) at C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\tslib\tslib.js:115:75 at new Promise (<anonymous>) at Object.__awaiter (C:\Program Files\Acumatica ERP\WSCNew\FrontendSources\screen\node_modules\tslib\tslib.js:111:16)[39m[22m @ ./src/screens/SO/SO301000/SO301000.tswebpack compiled with [1m[31m2 errors[39m[22mPublishing customization FAILEDBelow is my Modern UI code for reference: