Struggling with the next error:
Plugin installation was unsuccessful due to error "Command failed: /usr/share/kibana/node/bin/node /usr/share/kibana/src/cli --env.name=production --optimize.useBundleCache=false --server.autoListen=false --plugins.initialize=false --uiSettings.enabled=false
(node:3102) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
FATAL { Error: Optimizations failure.
6356 modules
ERROR in wazuh.bundle.js from UglifyJs
Invalid assignment [wazuh.bundle.js:62094,30]
at FsOptimizer.failedStatsToError (/usr/share/kibana/src/optimize/base_optimizer.js:245:27)
at compiler.run (/usr/share/kibana/src/optimize/fs_optimizer.js:28:26)
at onCompiled (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:241:12)
at applyPluginsAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:514:14)
at next (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:202:11)
at Compiler.<anonymous> (/usr/share/kibana/node_modules/webpack/lib/CachePlugin.js:78:5)
at Compiler.applyPluginsAsyncSeries (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:206:13)
at compilation.seal.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:511:11)
at Compilation.applyPluginsAsyncSeries (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:195:46)
at self.applyPluginsAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compilation.js:671:19)
at Compilation.applyPluginsAsyncSeries (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:195:46)
at self.applyPluginsAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compilation.js:662:11)
at next (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:202:11)
at Compilation.<anonymous> (/usr/share/kibana/node_modules/uglifyjs-webpack-plugin/dist/index.js:244:6)
at next (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:204:14)
at Compilation.compilation.plugin (/usr/share/kibana/node_modules/webpack/lib/BannerPlugin.js:67:5)
at Compilation.applyPluginsAsyncSeries (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:206:13)
at self.applyPluginsAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compilation.js:657:10)
at next (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:202:11)
at Compilation.<anonymous> (/usr/share/kibana/node_modules/extract-text-webpack-plugin/dist/index.js:275:11)
at Compilation.applyPluginsAsyncSeries (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:206:13)
at sealPart2 (/usr/share/kibana/node_modules/webpack/lib/Compilation.js:653:9)
My plugin runs perfect when using ./bin/kibana --dev
the problem occurs once the production optimizing starts... Help us please!
Thanks in advance,
Jesús