Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yapi,装完插件,重启首页报Uncaught SyntaxError: Identifier 'Buffer' has already been declared #6

Open
bowenZhou0631 opened this issue Oct 9, 2021 · 1 comment

Comments

@bowenZhou0631
Copy link

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors>ykit pack -m
[error] ./client/components/AuthenticatedComponent.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\components\AuthenticatedComponent.js
28:5 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
31:5 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/components/Loading/Loading.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\components\Loading\Loading.js
16:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/components/MyPopConfirm/MyPopConfirm.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\components\MyPopConfirm\MyPopConfirm.js
29:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Home/Home.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Home\Home.js
340:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Project/Project.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Project.js
44:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
59:9 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Follows/Follows.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Follows\Follows.js
46:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/AddProject/AddProject.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\AddProject\AddProject.js
92:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/User/List.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\User\List.js
97:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/User/Profile.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\User\Profile.js
88:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Group/GroupList/GroupList.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Group\GroupList\GroupList.js
82:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
201:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops.
Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Group/ProjectList/ProjectList.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Group\ProjectList\ProjectList.js
85:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Group/MemberList/MemberList.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Group\MemberList\MemberList.js
149:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops.
Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Group/GroupSetting/GroupSetting.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Group\GroupSetting\GroupSetting.js
104:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
196:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops.
Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Project/Interface/Interface.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Interface\Interface.js
87:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Project/Setting/ProjectMember/ProjectMember.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Setting\ProjectMember\ProjectMember.js
224:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Project/Setting/ProjectData/ProjectData.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Setting\ProjectData\ProjectData.js
94:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./exts/yapi-plugin-advanced-mock/AdvMock.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\exts\yapi-plugin-advanced-mock\AdvMock.js
46:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./exts/yapi-plugin-statistics/statisticsClientPage/index.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\exts\yapi-plugin-statistics\statisticsClientPage\index.js
143:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./exts/yapi-plugin-swagger-auto-sync/swaggerAutoSync/swaggerAutoSync.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\exts\yapi-plugin-swagger-auto-sync\swaggerAutoSync\swaggerAutoSync.js
96:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/components/Postman/Postman.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\components\Postman\Postman.js
274:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
287:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops.
Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Project/Interface/InterfaceList/InterfaceContent.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Interface\InterfaceList\InterfaceContent.js
45:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
55:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Project/Interface/InterfaceList/InterfaceMenu.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Interface\InterfaceList\InterfaceMenu.js
111:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
115:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops.
Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Interface\InterfaceCol\InterfaceColContent.js
171:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
483:9 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops.
Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Project/Interface/InterfaceList/InterfaceList.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Interface\InterfaceList\InterfaceList.js
125:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
130:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops.
Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Interface\InterfaceCol\InterfaceColMenu.js
106:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
110:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops.
Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Project/Interface/InterfaceCol/InterfaceCaseContent.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Interface\InterfaceCol\InterfaceCaseContent.js
81:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
98:9 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/containers/Project/Setting/ProjectMessage/ProjectMessage.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Setting\ProjectMessage\ProjectMessage.js
221:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Project/Setting/ProjectRequest/ProjectRequest.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Setting\ProjectRequest\ProjectRequest.js
30:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Project/Setting/ProjectMock/index.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Setting\ProjectMock\index.js
73:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Project/Setting/ProjectEnv/index.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Setting\ProjectEnv\index.js
54:9 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/components/TimeLine/TimeLine.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\components\TimeLine\TimeLine.js
113:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.co
m/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./exts/yapi-plugin-advanced-mock/MockCol/MockCol.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\exts\yapi-plugin-advanced-mock\MockCol\MockCol.js
46:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./exts/yapi-plugin-statistics/statisticsClientPage/StatisChart.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\exts\yapi-plugin-statistics\statisticsClientPage\StatisChart.js
23:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/components/AceEditor/AceEditor.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\components\AceEditor\AceEditor.js
52:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/components/ModalPostman/index.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\components\ModalPostman\index.js
64:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Project/Setting/ProjectEnv/ProjectEnvContent.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Setting\ProjectEnv\ProjectEnvContent.js
122:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops.
Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Project/Interface/InterfaceList/Run/Run.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Interface\InterfaceList\Run\Run.js
35:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
37:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] ./client/components/Label/Label.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\components\Label\Label.js
25:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/components/ModalPostman/VariablesSelect.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\components\ModalPostman\VariablesSelect.js
79:9 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 1 problem (1 error, 0 warnings)

[error] ./client/containers/Project/Interface/InterfaceList/Run/AddColModal.js

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\client\containers\Project\Interface\InterfaceList\Run\AddColModal.js
44:3 error componentWillMount is deprecated since React 16.9.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com
/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
49:3 error componentWillReceiveProps is deprecated since React 16.9.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. U
se https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated

✖ 2 problems (2 errors, 0 warnings)

[error] .//swagger-client/lib/resolver.js
Module parse failed: F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\node_modules\swagger-client\lib\resolver.js Unexpected token (119:38)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (119:38)
at Parser.pp$4.raise (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.expect (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:597:28)
at Parser.pp$3.parseMaybeConditional (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1626:12)
at Parser.pp$3.parseMaybeAssign (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExprList (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:2165:22)
at Parser.pp$3.parseSubscripts (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1741:35)
at Parser.pp$3.parseExprSubscripts (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1718:17)
at Parser.pp$3.parseMaybeUnary (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseReturnStatement (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:839:33)
at Parser.pp$1.parseStatement (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:699:34)
at Parser.pp$1.parseBlock (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
@ ./
/swagger-client/lib/index.js 14:40-61

[error] .//swagger-client/lib/http/index.js
Module parse failed: F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\node_modules\swagger-client\lib\http\index.js Unexpected token (43:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (43:6)
at Parser.pp$4.raise (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseTopLevel (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule. (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (D:\nodeJs1\node_global\node_modules\ykit\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at D:\nodeJs1\node_global\node_modules\ykit\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)
@ ./
/swagger-client/lib/index.js 12:36-53

[error] .//swagger-client/lib/subtree-resolver/index.js
Module parse failed: F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\node_modules\swagger-client\lib\subtree-resolver\index.js Unexpected token (20:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (20:6)
at Parser.pp$4.raise (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseTopLevel (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\lib\Parser.js:902:15)
at NormalModule. (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\lib\NormalModule.js:104:16)
at NormalModule.onModuleBuild (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
at nextLoader (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25)
at D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (D:\nodeJs1\node_global\node_modules\ykit\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16)
at D:\nodeJs1\node_global\node_modules\ykit\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)
@ ./
/swagger-client/lib/index.js 16:46-75

[error] .//buffer/index.js
Module parse failed: F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors\node_modules\buffer\index.js Unexpected token (1216:24)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1216:24)
at Parser.pp$4.raise (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOp (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1656:43)
at Parser.pp$3.parseExprOp (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1658:21)
at Parser.pp$3.parseExprOp (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1656:26)
at Parser.pp$3.parseExprOps (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1639:17)
at Parser.pp$3.parseMaybeConditional (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$1.parseVar (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:1034:28)
at Parser.pp$1.parseVarStatement (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:917:10)
at Parser.pp$1.parseStatement (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:706:19)
at Parser.pp$1.parseBlock (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$3.parseFunctionBody (D:\nodeJs1\node_global\node_modules\ykit\node_modules\webpack\node_modules\acorn\dist\acorn.js:2105:24)
@ ./
/safe-buffer/index.js 3:13-30

[error] [email protected] from UglifyJs
SyntaxError: Name expected [../~/swagger-client/lib/commonjs.js:3,0]

F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors>
F:\裕民\yapi_1.9.8\yapi-copy3\my-yapi\vendors>node server/app.js
log: -------------------------------------swaggerSyncUtils constructor-----------------------------------------------
log: 服务已启动,请打开下面链接访问:
http://127.0.0.1:3000/
log: mongodb load success...
(node:9628) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

@bowenZhou0631
Copy link
Author

按照文档装完插件,走完第三步,ykit pack -m进行打包(期间大量的版本过期错误),然后重启成功但是报错!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant