ERROR: Error: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node12', 'nodenext'.; Argument for '--moduleResolution' option must be: 'node', 'classic', 'node12', 'nodenext'.
ERROR: at createProgram (/builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/lib/programManager.js:65:15)
ERROR: at /builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/lib/server.js:36:61
ERROR: at Layer.handle [as handle_request] (/builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/express/lib/router/layer.js:95:5)
ERROR: at next (/builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/express/lib/router/route.js:137:13)
ERROR: at Route.dispatch (/builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/express/lib/router/route.js:112:3)
ERROR: at Layer.handle [as handle_request] (/builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/express/lib/router/layer.js:95:5)
ERROR: at /builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/express/lib/router/index.js:281:22
ERROR: at Function.process_params (/builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/express/lib/router/index.js:341:12)
ERROR: at next (/builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/express/lib/router/index.js:275:10)
ERROR: at /builds/gitlab-org/gitlab-repo/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/body-parser/lib/read.js:130:5
ERROR: Failed to create program: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node12', 'nodenext'.; Argument for '--moduleResolution' option must be: 'node', 'classic', 'node12', 'nodenext'.
The typescript team changed the module option from node12
to node16
in final release.
Typescript version - 4.7.2