最新的前端代码,我执行yarn start 出现下列错误,不知道怎么解决,请问有遇到的没,
另外,执行yarn build可以成功
Compiled with warnings.
./node_modules/pdfjs-dist/build/pdf.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
./node_modules/pdfjs-dist/build/pdf.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
./node_modules/pdfjs-dist/build/pdf.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
./node_modules/pdfjs-dist/build/pdf.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
./src/component/Common/Snackbar.js
src/component/Common/Snackbar.js
Line 12:10: 'green' is defined but never used @typescript-eslint/no-unused-vars
Line 12:17: 'amber' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/ContextMenu.js
src/component/FileManager/ContextMenu.js
Line 58:5: 'setSideBar' is defined but never used @typescript-eslint/no-unused-vars
Line 258:15: 'emptyMenuList' is assigned a value but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/DnD/DragLayer.js
src/component/FileManager/DnD/DragLayer.js
Line 39:26: 'props' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/DnD/DropWarpper.js
src/component/FileManager/DnD/DropWarpper.js
Line 4:8: 'classNames' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/DnD/Preview.js
src/component/FileManager/DnD/Preview.js
Line 6:8: 'Folder' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/FileIcon.js
src/component/FileManager/FileIcon.js
Line 9:10: 'lighten' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/Folder.js
src/component/FileManager/Folder.js
Line 12:10: 'lighten' is defined but never used @typescript-eslint/no-unused-vars
Line 14:8: 'TypeIcon' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/Navigator/Navigator.js
src/component/FileManager/Navigator/Navigator.js
Line 36:8: 'Avatar' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/Navigator/SubActions.js
src/component/FileManager/Navigator/SubActions.js
Line 13:31: 'theme' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/ObjectIcon.js
src/component/FileManager/ObjectIcon.js
Line 8:5: 'showImgPreivew' is defined but never used @typescript-eslint/no-unused-vars
Line 9:5: 'openMusicDialog' is defined but never used @typescript-eslint/no-unused-vars
Line 19:10: 'isPreviewable' is defined but never used @typescript-eslint/no-unused-vars
Line 24:10: 'useHistory' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/Sidebar/SideDrawer.js
src/component/FileManager/Sidebar/SideDrawer.js
Line 140:24: 't' is defined but never used @typescript-eslint/no-unused-vars
Line 145:20: 'd' is defined but never used @typescript-eslint/no-unused-vars
Line 149:24: 't' is defined but never used @typescript-eslint/no-unused-vars
Line 154:24: 't' is defined but never used @typescript-eslint/no-unused-vars
Line 159:24: 't' is defined but never used @typescript-eslint/no-unused-vars
Line 179:20: 'd' is defined but never used @typescript-eslint/no-unused-vars
Line 183:24: 't' is defined but never used @typescript-eslint/no-unused-vars
Line 185:20: 'd' is defined but never used @typescript-eslint/no-unused-vars
Line 190:20: 'd' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/SmallIcon.js
src/component/FileManager/SmallIcon.js
Line 13:10: 'lighten' is defined but never used @typescript-eslint/no-unused-vars
./src/component/FileManager/TableRow.js
src/component/FileManager/TableRow.js
Line 16:10: 'lighten' is defined but never used @typescript-eslint/no-unused-vars
Line 23:8: 'dayjs' is defined but never used @typescript-eslint/no-unused-vars
./src/component/Modals/CreateShare.js
src/component/Modals/CreateShare.js
Line 41:8: 'EyeIcon' is defined but never used @typescript-eslint/no-unused-vars
./src/component/Modals/TimeZone.js
src/component/Modals/TimeZone.js
Line 1:40: 'useEffect' is defined but never used @typescript-eslint/no-unused-vars
Line 2:10: 'FormLabel' is defined but never used @typescript-eslint/no-unused-vars
Line 9:5: 'DialogContentText' is defined but never used @typescript-eslint/no-unused-vars
Line 12:26: 'setModalsLoading' is defined but never used @typescript-eslint/no-unused-vars
Line 13:8: 'PathSelector' is defined but never used @typescript-eslint/no-unused-vars
Line 15:8: 'API' is defined but never used @typescript-eslint/no-unused-vars
Line 17:8: 'Select' is defined but never used @typescript-eslint/no-unused-vars
Line 18:8: 'MenuItem' is defined but never used @typescript-eslint/no-unused-vars
Line 27:31: 'theme' is defined but never used @typescript-eslint/no-unused-vars
./src/component/Placeholder/ListLoading.js
src/component/Placeholder/ListLoading.js
Line 5:31: 'theme' is defined but never used @typescript-eslint/no-unused-vars
./src/component/Setting/UserSetting.js
src/component/Setting/UserSetting.js
Line 52:10: 'transformTime' is defined but never used @typescript-eslint/no-unused-vars
./src/redux/explorer/action.ts
src/redux/explorer/action.ts
Line 112:15: 'state' is assigned a value but never used @typescript-eslint/no-unused-vars
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
events.js:352
throw er; // Unhandled 'error' event
^
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at Socket.Writable.write (internal/streams/writable.js:292:11)
at Socket.Writable.end (internal/streams/writable.js:567:10)
at Socket.end (net.js:592:31)
at App.welcome_screen (/opt/source/GO/Cloudreve/src/Cloudreve/assets_jx/node_modules/sockjs/lib/sockjs.js:54:11)
at execute_request (/opt/source/GO/Cloudreve/src/Cloudreve/assets_jx/node_modules/sockjs/lib/webjs.js:22:37)
at IncomingMessage.req.next_filter (/opt/source/GO/Cloudreve/src/Cloudreve/assets_jx/node_modules/sockjs/lib/webjs.js:105:18)
at Listener.webjs_handler (/opt/source/GO/Cloudreve/src/Cloudreve/assets_jx/node_modules/sockjs/lib/webjs.js:107:13)
at Listener.handler (/opt/source/GO/Cloudreve/src/Cloudreve/assets_jx/node_modules/sockjs/lib/sockjs.js:150:12)
at Listener.handler (/opt/source/GO/Cloudreve/src/Cloudreve/assets_jx/node_modules/sockjs/lib/sockjs.js:6:59)
at Server.<anonymous> (/opt/source/GO/Cloudreve/src/Cloudreve/assets_jx/node_modules/sockjs/lib/sockjs.js:157:24)
at Server.new_handler (/opt/source/GO/Cloudreve/src/Cloudreve/assets_jx/node_modules/sockjs/lib/utils.js:86:19)
at Server.emit (events.js:375:28)
at onParserExecuteCommon (http_server.js:700:14)
at onParserExecute (http_server.js:613:3)
Emitted 'error' event on Socket instance at:
at emitErrorNT (internal/streams/destroy.js:106:8)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
code: 'ERR_STREAM_WRITE_AFTER_END'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.