Babel无法转换'?'在打字稿中声明。
let t= getObject()?.fieldName;//Module build failed (from ./node_modules/babel-loader/lib/index.js): Unexpected token let t= getObject() && getObejct().fieldName;
也许您可以使用optional-chaining