-
Notifications
You must be signed in to change notification settings - Fork 161
TypeError: Cannot read property 'name' of undefined for no-debug #101
Copy link
Copy link
Closed
Labels
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.
Reactions are currently unavailable
