在执行npm run build
命令时,我收到以下错误
C:\Users\syedk\cutQ\cutq-app>npm run build > cutq-app@0.1.0 build C:\Users\syedk\cutQ\cutq-app > react-scripts build Creating an optimized production build... Failed to compile. src\components\Dialog\index.js Line 20:3: Definition for rule 'no-' was not found no- Search for the keywords to learn more about each error. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! cutq-app@0.1.0 build: `react-scripts build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the cutq-app@0.1.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\syedk\AppData\Roaming\npm-cache\_logs\2021-09-14T12_45_37_060Z-debug.log
在给定的行我没有看到任何问题可能是什么问题?
const renderIconButton = (handleClose) => { //line where error is indicated
return (
<div className={classes.iconButtonWrapper}>
<IconButton onClick={(e) => handleClose(e)}>
<CloseIcon />
</IconButton>
</div>
);
};