-
Notifications
You must be signed in to change notification settings - Fork 17
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
安装后重启报错Uncaught SyntaxError: Identifier 'Buffer' has already been declared #11
Comments
可能是版本依赖得问题 |
ykit 打包后就,访问yapi首页就Buffer 失效, Uncaught SyntaxError: Identifier 'Buffer' has already been declared,有时间看一下,是否跟依赖的safe-buffer有关,我这边的yapi版本是1.9.2 @ @zgs225 |
好的,我看看问题。 |
解决了吗?我也遇到了,能不能还原 |
同样的问题,有解决吗? |
1 similar comment
同样的问题,有解决吗? |
你们出错误的 yapi 版本是多少,我去测试一下。 |
1.9.2版本 |
同样的问题,1.9.2版本 [email protected]:67520 /* 774 /
|
想请问下这个问题你解决了吗? |
我的yapi的版本是1.5的,也报这个错 |
最新版本1.10.1也报 |
最新版本1.10.2也报 |
1.9.2 版本 |
将源码中的package-lock.json覆盖新生成的package-lock.json,就能解决问题了。 |
编译过程中报错,我这边直接和用你的那个docker 环境安装以后都会报编译错误
[error] ./client/components/AuthenticatedComponent.js
/usr/local/yapi/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. 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/components/MyPopConfirm/MyPopConfirm.js
/usr/local/yapi/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. 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/Loading/Loading.js
/usr/local/yapi/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. 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
/usr/local/yapi/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
/usr/local/yapi/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. 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/Project.js
/usr/local/yapi/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. 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/AddProject/AddProject.js
/usr/local/yapi/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/Home/Home.js
/usr/local/yapi/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.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated
✖ 1 problem (1 error, 0 warnings)
[error] ./client/containers/Follows/Follows.js
/usr/local/yapi/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] ./exts/yapi-plugin-statistics/statisticsClientPage/index.js
/usr/local/yapi/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.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
/usr/local/yapi/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] ./client/containers/Group/ProjectList/ProjectList.js
/usr/local/yapi/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. 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/MemberList/MemberList.js
/usr/local/yapi/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/GroupList/GroupList.js
/usr/local/yapi/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.com/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/GroupSetting/GroupSetting.js
/usr/local/yapi/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.com/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] ./exts/yapi-plugin-swagger-auto-sync/swaggerAutoSync/swaggerAutoSync.js
/usr/local/yapi/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/containers/Project/Interface/Interface.js
/usr/local/yapi/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
/usr/local/yapi/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.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/ProjectData/ProjectData.js
/usr/local/yapi/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-statistics/statisticsClientPage/StatisChart.js
/usr/local/yapi/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] ./exts/yapi-plugin-advanced-mock/MockCol/MockCol.js
/usr/local/yapi/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] ./client/components/TimeLine/TimeLine.js
/usr/local/yapi/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.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
/usr/local/yapi/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/containers/Project/Setting/ProjectRequest/ProjectRequest.js
/usr/local/yapi/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/ProjectMessage/ProjectMessage.js
/usr/local/yapi/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.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
/usr/local/yapi/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/components/Postman/Postman.js
/usr/local/yapi/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.com/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
/usr/local/yapi/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. 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
/usr/local/yapi/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.com/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/InterfaceCaseContent.js
/usr/local/yapi/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. 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
/usr/local/yapi/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.com/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/InterfaceList/InterfaceMenu.js
/usr/local/yapi/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.com/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
/usr/local/yapi/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.com/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/components/AceEditor/AceEditor.js
/usr/local/yapi/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. 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/ModalPostman/index.js
/usr/local/yapi/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
/usr/local/yapi/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/components/Label/Label.js
/usr/local/yapi/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. 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
/usr/local/yapi/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. 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] ./
/swagger-client/lib/http.js/swagger-client/lib/index.js 12:36-53Module parse failed: /usr/local/yapi/my-yapi/vendors/node_modules/swagger-client/lib/http.js Unexpected token (41:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (41:6)
at Parser.pp$4.raise (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
at Parser.pp.unexpected (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
at Parser.pp.semicolon (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)
at Parser.pp$1.parseStatement (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)
at Parser.pp$1.parseTopLevel (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
at Parser.parse (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
at Object.parse (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
at Parser.parse (/usr/local/lib/node_modules/ykit/node_modules/webpack/lib/Parser.js:902:15)
at NormalModule. (/usr/local/lib/node_modules/ykit/node_modules/webpack/lib/NormalModule.js:104:16)
at NormalModule.onModuleBuild (/usr/local/lib/node_modules/ykit/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
at nextLoader (/usr/local/lib/node_modules/ykit/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
at /usr/local/lib/node_modules/ykit/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
at Storage.finished (/usr/local/lib/node_modules/ykit/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
at /usr/local/lib/node_modules/ykit/node_modules/graceful-fs/graceful-fs.js:90:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
@ ./
[error] ./
/swagger-client/lib/resolver.js/swagger-client/lib/index.js 14:40-61Module parse failed: /usr/local/yapi/my-yapi/vendors/node_modules/swagger-client/lib/resolver.js Unexpected token (123:38)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (123:38)
at Parser.pp$4.raise (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
at Parser.pp.unexpected (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
at Parser.pp.expect (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:597:28)
at Parser.pp$3.parseMaybeConditional (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:1626:12)
at Parser.pp$3.parseMaybeAssign (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:1597:21)
at Parser.pp$3.parseExprList (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:2165:22)
at Parser.pp$3.parseSubscripts (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:1741:35)
at Parser.pp$3.parseExprSubscripts (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:1718:17)
at Parser.pp$3.parseMaybeUnary (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:1692:19)
at Parser.pp$3.parseExprOps (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:1597:21)
at Parser.pp$3.parseExpression (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:1573:21)
at Parser.pp$1.parseReturnStatement (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:839:33)
at Parser.pp$1.parseStatement (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:699:34)
at Parser.pp$1.parseBlock (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:981:25)
@ ./
[error] ./
/swagger-client/lib/subtree-resolver/index.js/swagger-client/lib/index.js 16:46-75Module parse failed: /usr/local/yapi/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 (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
at Parser.pp.unexpected (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
at Parser.pp.semicolon (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)
at Parser.pp$1.parseStatement (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)
at Parser.pp$1.parseTopLevel (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
at Parser.parse (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
at Object.parse (/usr/local/lib/node_modules/ykit/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
at Parser.parse (/usr/local/lib/node_modules/ykit/node_modules/webpack/lib/Parser.js:902:15)
at NormalModule. (/usr/local/lib/node_modules/ykit/node_modules/webpack/lib/NormalModule.js:104:16)
at NormalModule.onModuleBuild (/usr/local/lib/node_modules/ykit/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
at nextLoader (/usr/local/lib/node_modules/ykit/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
at /usr/local/lib/node_modules/ykit/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
at Storage.finished (/usr/local/lib/node_modules/ykit/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
at /usr/local/lib/node_modules/ykit/node_modules/graceful-fs/graceful-fs.js:90:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
@ ./
[error] ./client/components/ModalPostman/VariablesSelect.js
/usr/local/yapi/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. 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/AddColModal.js
/usr/local/yapi/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. 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] [email protected] from UglifyJs
The text was updated successfully, but these errors were encountered: