}// We've got ourselves a final member expression.if(path.length ===2&& babel.isIdentifier(expression.object)) {returnexpression.object.name === path[0]; }// Nested expressions.if(path.length >2&& babel.isMemberExpression(expression.object)) {returnmatchesCallExpression( expression.object, pa...
Node_modules/@types/react/index"' has no default export, That happens because babel (the one that you were using before) assumes modules.export as default export while typescript (the one that you are using now) does not. You can use this syntax by simply adding "allowSyntheticDefaultImports...
I use @babel/plugin-proposal-optional-chaining like this: I found only href will throw error. Other props will not throw error, like this: