Closed
Description
We adopted the react preset recently and are seeing failing builds on CI with the error TypeError: Cannot read property 'name' of undefined
. Which seems to originate from this code:
ImportDeclaration(node) {
const screenModuleName = LIBRARY_MODULES_WITH_SCREEN.find(
module => module === node.source.value
);
if (
screenModuleName &&
node.specifiers.some(
specifier => specifier.imported.name === 'screen'
)
) {
hasImportedScreen = true;
}
},
in no-debug.js on line 95.
We are also seeing the error on a GitHub Action build to inspect for you.