While runing ember build, we are getting below error: yarn node v1.22.19 Invalid Version: undefined TypeError: Invalid Version: undefined at new SemVer (/apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/semver/semver.js:344:11) at compare (/apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/semver/semver.js:653:10) at Function.lt (/apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/semver/semver.js:687:10) at Function.ClassTransformPlugin.forEmberVersion (/apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/ember-css-modules/lib/htmlbars-plugin/index.js:15:14) at Class.setupPreprocessorRegistry (/apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/ember-css-modules/index.js:51:30) at /apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/ember-cli/node_modules/ember-cli-preprocess-registry/preprocessors.js:27:13 at Array.forEach () at setupRegistryForEachAddon (/apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/ember-cli/node_modules/ember-cli-preprocess-registry/preprocessors.js:25:10) at Object.module.exports.setupRegistry (/apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/ember-cli/node_modules/ember-cli-preprocess-registry/preprocessors.js:46:3) at Class.init (/apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/ember-cli/lib/models/addon.js:227:7) An error occured in the constructor for ember-cli-notifications at /apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login/node_modules/ember-cli-notifications error Command failed. Exit code: 1 Command: /apps/ado-agent/adoagent/_work/_tool/node/12.18.0/x64/bin/node Arguments: --max-old-space-size=8192 node_modules/ember-cli/bin/ember build --environment=production Directory: /apps/ado-agent/adoagent/_work/44/s/50295-s2bv4-ui-core/login Output:
Node version : 12.18.0 Ember-cli version : 2.14.2
Kindly help to resolve this issue.