Skip to main content
Answer

building modern ui chokes on outlook plugin and screens for unknown reason

  • July 18, 2025
  • 7 replies
  • 120 views

Forum|alt.badge.img+5

I don’t even have the Outlook plugin activated...

 

C:\Program Files\Acumatica ERP\AcumaticaERP\FrontendSources>npm run build

> build
> node build-and-clean.js

exec error: Error: Command failed: gulp build
[16:19:36] 'build' errored after 680 ms
[16:19:36] Task finished with errors

[16:19:33] Requiring external module ts-node/register
[16:19:35] Using gulpfile C:\Program Files\Acumatica ERP\AcumaticaERP\FrontendSources\gulpfile.ts
[16:19:35] Starting 'build'...
[16:19:35] Starting 'outlookPlugin build'...
[16:19:35] Starting 'screens build'...

> outlook-plugin@0.1.0 build
> webpack --env production

> 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


node:internal/modules/cjs/loader:1252
  throw err;
  ^

Error: Cannot find module 'C:\Program Files\Acumatica ERP\AcumaticaERP\FrontendSources\outlook-plugin\node_modules\webpack\bin\webpack.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.11.0

node:internal/modules/cjs/loader:1252
  throw err;
  ^

Error: Cannot find module 'C:\Program Files\Acumatica ERP\AcumaticaERP\FrontendSources\screen\node_modules\cross-env\src\bin\cross-env.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.11.0

[16:19:36] Finished 'outlookPlugin build' after 652 ms
[16:19:36] Finished 'screens build' after 656 ms
[16:19:36] Starting 'outlookPlugin clear'...
[16:19:36] Starting 'screens clear'...
[16:19:36] Finished 'outlookPlugin clear' after 20 ms
[16:19:36] Finished 'screens clear' after 21 ms
task: outlookPlugin build
error: Unknown build error, exit code 1
task: screens build
error: Unknown build error, exit code 1

[16:19:36] 'build' errored after 680 ms

Best answer by rosenjon

@Dmitrii Naumov-

Build 25.101.0153

 

cd C:\Program Files\Acumatica ERP\AcumaticaERP\FrontendSources\outlook-plugin

npm update

 

These steps solved this issue. The OOB install was missing a reference to a file in the outlook-plugin folder and this was throwing an error. I didn’t purposely install any outlook plugin, so tis seems to break the build whether you’re using the outlook plugin or not.

 

 

7 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • July 21, 2025

@rosenjon what Acumatica version do you have?


Forum|alt.badge.img+5
  • Author
  • Semi-Pro III
  • Answer
  • July 28, 2025

@Dmitrii Naumov-

Build 25.101.0153

 

cd C:\Program Files\Acumatica ERP\AcumaticaERP\FrontendSources\outlook-plugin

npm update

 

These steps solved this issue. The OOB install was missing a reference to a file in the outlook-plugin folder and this was throwing an error. I didn’t purposely install any outlook plugin, so tis seems to break the build whether you’re using the outlook plugin or not.

 

 


darylbowman
Captain II
Forum|alt.badge.img+15

Did you run npm run getmodules first, and there was still something wrong with outlook-plugin?


Forum|alt.badge.img+5
  • Author
  • Semi-Pro III
  • July 28, 2025

@darylbowman yes pretty sure I ran that before, but I’m still learning about all this so can’t say 100%.


darylbowman
Captain II
Forum|alt.badge.img+15

If you haven’t used npm before, would recommend this. Helped me considerably.


Forum|alt.badge.img+5
  • Author
  • Semi-Pro III
  • July 28, 2025

@darylbowman I’m pretty familiar with Node, but not for frontend work. Thanks for the link!


DrewNisley
Pro I
Forum|alt.badge.img+3
  • Pro I
  • July 28, 2025

@darylbowman That was a great video, thank you!