[error] npm ERR! code ELIFECYCLE
[error] npm ERR! errno 2
[error] npm ERR! cortex@3.1.3 build: `cross-env NODE_ENV=production webpack -p --colors`
[error] npm ERR! Exit status 2
[error] npm ERR!
[error] npm ERR! Failed at the cortex@3.1.3 build script.
[error] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[error] npm ERR! A complete log of this run can be found in:
[error] npm ERR! /root/.npm/_logs/2022-04-05T11_42_13_721Z-debug.log
Jars were created but when I try to open Cortex page then I see error
A client error occurred on GET /index.html : Resource not found by Assets controller
Build Error
Request Type
Bug
Work Environment
Problem Description
Build is not possible due to node_module node-sass error.
Tested on node 12 and 14.
Steps to Reproduce
Possible Solutions
Change node-sass package to sass (like here) Change sass-loader to newer version (working on 7.2.0).
Complementary information
First error
On the end:
Jars were created but when I try to open Cortex page then I see error