The bundle size is significantly larger than recommended.
Consider reducing it with code splitting: https://goo.gl/9VhYWB
You can also analyze the project dependencies: https://goo.gl/LeUzfb
[umi-plugin-dll] Build dll done
Starting the development server...
✔ Webpack
Compiled successfully in 13.63s
WARNING Compiled with 15 warnings 13:26:56
warning in ./src/pages/user/model.js
"export 'createUser' was not found in 'api'
warning in ./src/pages/user/components/Filter.js
"export 'default' (imported as 'city') was not found in 'utils/city'
warning in ./src/pages/user/components/Modal.js
"export 'default' (imported as 'city') was not found in 'utils/city'
warning in ./src/pages/login/model.js
"export 'loginUser' was not found in 'api'
warning in ./src/models/app.js
"export 'logoutUser' was not found in 'api'
warning in ./src/pages/dashboard/model.js
"export 'queryDashboard' was not found in 'api'
warning in ./src/pages/post/model.js
"export 'queryPostList' was not found in 'api'
warning in ./src/models/app.js
"export 'queryRouteList' was not found in 'api'
warning in ./src/pages/user/$id/models/detail.js
"export 'queryUser' was not found in 'api'
warning in ./src/models/app.js
"export 'queryUserInfo' was not found in 'api'
warning in ./src/pages/user/model.js
"export 'queryUserList' was not found in 'api'
warning in ./src/pages/dashboard/model.js
"export 'queryWeather' (imported as '_queryWeather') was not found in 'api'
Hello!
Environment:
Fedora 29 (
Linux 4.19.12-301.fc29.x86_64 #1 SMP Mon Dec 24 01:58:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
)Steps:
$ cd antd-admin
$ git rev-parse HEAD 6e69b06e611ce3b26d660a6eb4dab2b2808909a6
$ yarn install yarn install v1.12.3 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@1.2.4: The platform "linux" is incompatible with this module. info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > @lingui/react@2.7.2" has unmet peer dependency "react@^15.0.0 || ^16.0.0". warning "@lingui/react > hoist-non-react-statics@3.0.1" has unmet peer dependency "react@>=14.x". warning " > ant-design-pro@2.1.1" has unmet peer dependency "react@~0.14.0 || >=15.0.0 || >=16.0.0". warning " > ant-design-pro@2.1.1" has unmet peer dependency "react-dom@~0.14.0 || >=15.0.0 || >= 16.0.0". warning "ant-design-pro > bizcharts@3.4.3" has unmet peer dependency "react@^15.0.0 || ^16.0.0". warning "ant-design-pro > bizcharts-plugin-slider@2.1.1" has unmet peer dependency "react@>15". warning "ant-design-pro > bizcharts-plugin-slider@2.1.1" has unmet peer dependency "react-dom@>15". warning "ant-design-pro > react-container-query@0.11.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0". warning "ant-design-pro > react-container-query@0.11.0" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0-0 || ^16.0.0-0". warning "ant-design-pro > react-copy-to-clipboard@5.0.1" has unmet peer dependency "react@^15.3.0 || ^16.0.0". warning "ant-design-pro > react-fittext@1.0.0" has unmet peer dependency "react@^15.0.0". warning "ant-design-pro > react-fittext@1.0.0" has unmet peer dependency "react-dom@^15.0.0". warning "ant-design-pro > react-router-dom@4.3.1" has unmet peer dependency "react@>=15". warning "ant-design-pro > bizcharts-plugin-slider > @antv/g2-plugin-slider@2.1.0" has unmet peer dependency "@antv/g2@>=3.2.8". warning "react-helmet > react-side-effect@1.1.5" has unmet peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0". warning "ant-design-pro > react-router-dom > react-router@4.3.1" has unmet peer dependency "react@>=15". warning " > antd@3.12.1" has unmet peer dependency "react@>=16.0.0". warning " > antd@3.12.1" has unmet peer dependency "react-dom@>=16.0.0". warning "antd > @ant-design/icons-react@1.1.2" has unmet peer dependency "react@16.x". warning "antd > create-react-context@0.2.2" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0". warning "antd > rc-editor-mention@1.1.12" has unmet peer dependency "react@>=15.x". warning "antd > rc-editor-mention@1.1.12" has unmet peer dependency "react-dom@>=15.x". warning "antd > rc-switch@1.8.0" has unmet peer dependency "react@^16.0.0". warning "antd > rc-switch@1.8.0" has unmet peer dependency "react-dom@^16.0.0". warning "antd > react-lazy-load@3.0.13" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0". warning "antd > react-lazy-load@3.0.13" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0-0 || ^16.0.0". warning "antd > react-slick@0.23.2" has unmet peer dependency "react@^0.14.0 || ^15.0.1 || ^16.0.0". warning "antd > react-slick@0.23.2" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.1 || ^16.0.0". warning "antd > rc-editor-mention > draft-js@0.10.5" has unmet peer dependency "react@^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0". warning "antd > rc-editor-mention > draft-js@0.10.5" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0". warning "antd > rc-tabs > rc-hammerjs@0.6.9" has unmet peer dependency "react@^0.14.3 || ^15.0.0 || ^16.0.0". warning " > babel-core@7.0.0-bridge.0" has unmet peer dependency "@babel/core@^7.0.0-0". warning " > echarts-for-react@2.0.15-beta.0" has unmet peer dependency "react@>=0.13.2 || ^0.14 || ^15.0.0 || >=16.0.0". warning " > echarts-liquidfill@2.0.4" has unmet peer dependency "zrender@^4.0.4". warning " > react-adsense@0.0.6" has unmet peer dependency "react@>=0.13.2 || ^0.14 || ^15.0.0 || ^16.0.0". warning " > react-countup@4.0.0" has unmet peer dependency "react@>= 16.3.0". warning " > react-draft-wysiwyg@1.12.19" has unmet peer dependency "draft-js@^0.10.x". warning " > react-draft-wysiwyg@1.12.19" has unmet peer dependency "immutable@3.x.x || 4.x.x". warning " > react-draft-wysiwyg@1.12.19" has unmet peer dependency "react@0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || 16.x.x". warning " > react-draft-wysiwyg@1.12.19" has unmet peer dependency "react-dom@0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || 16.x.x". warning "react-draft-wysiwyg > draftjs-utils@0.9.4" has unmet peer dependency "draft-js@^0.10.x". warning "react-draft-wysiwyg > draftjs-utils@0.9.4" has unmet peer dependency "immutable@3.x.x || 4.x.x". warning "react-draft-wysiwyg > html-to-draftjs@1.4.0" has unmet peer dependency "immutable@3.x.x || 4.x.x". warning "react-draft-wysiwyg > html-to-draftjs@1.4.0" has unmet peer dependency "draft-js@^0.10.x". warning " > react-helmet@5.2.0" has unmet peer dependency "react@>=15.0.0". warning " > react-highcharts@16.0.2" has unmet peer dependency "react@~0.14 || ^15.0.0 || ^16.0.0". warning " > react-highcharts@16.0.2" has unmet peer dependency "react-dom@~0.14 || ^15.0.0 || ^16.0.0". warning " > react-perfect-scrollbar@1.4.4" has unmet peer dependency "react@>=16.3.3". warning " > react-perfect-scrollbar@1.4.4" has unmet peer dependency "react-dom@>=16.3.3". warning " > recharts@1.4.2" has unmet peer dependency "react@^15.0.0 || ^16.0.0". warning " > recharts@1.4.2" has unmet peer dependency "react-dom@^15.0.0 || ^16.0.0". warning "recharts > react-resize-detector@2.3.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0 || ^16.0.0". warning "recharts > react-smooth@1.0.2" has unmet peer dependency "react@^15.0.0 || ^16.0.0". warning "recharts > react-smooth@1.0.2" has unmet peer dependency "react-dom@^15.0.0 || ^16.0.0". warning "recharts > react-smooth > react-transition-group@2.5.2" has unmet peer dependency "react@>=15.0.0". warning "recharts > react-smooth > react-transition-group@2.5.2" has unmet peer dependency "react-dom@>=15.0.0". warning " > eslint-config-react-app@3.0.6" has incorrect peer dependency "babel-eslint@9.x". warning " > eslint-config-react-app@3.0.6" has incorrect peer dependency "eslint-plugin-flowtype@2.x". warning "umi > react-loadable@5.5.0" has unmet peer dependency "react@*". warning "umi > umi-build-dev > react-router-config@4.4.0-beta.6" has incorrect peer dependency "react-router@4.4.0-beta.1". warning "umi-plugin-react > umi-plugin-dva > babel-plugin-dva-hmr@0.4.1" has unmet peer dependency "redbox-react@1.x". warning "umi-plugin-react > umi-plugin-dva > dva@2.5.0-beta.2" has unmet peer dependency "react@15.x || ^16.0.0-0". warning "umi-plugin-react > umi-plugin-dva > dva@2.5.0-beta.2" has unmet peer dependency "react-dom@15.x || ^16.0.0-0". warning "umi-plugin-react > umi-plugin-dva > dva-loading@2.1.0-beta.2" has unmet peer dependency "dva-core@^1.1.0". warning "umi-plugin-react > umi-plugin-locale > react-intl@2.7.2" has unmet peer dependency "react@^0.14.9 || ^15.0.0 || ^16.0.0". warning "umi-plugin-react > umi-plugin-dva > dva > react-redux@5.1.1" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0". warning "umi-plugin-react > umi-plugin-dva > dva > react-router-redux@5.0.0-alpha.9" has unmet peer dependency "react@>=15". [4/4] Building fresh packages... success Saved lockfile. Done in 41.33s.
$ yarn run start yarn run v1.12.3 $ umi dev
✔ Webpack Compiled successfully in 11.24s
DONE Compiled successfully in 11246ms 13:26:40
File sizes after gzip:
3.69 MB umi-dlls/umi.dll.js
The bundle size is significantly larger than recommended. Consider reducing it with code splitting: https://goo.gl/9VhYWB You can also analyze the project dependencies: https://goo.gl/LeUzfb
[umi-plugin-dll] Build dll done Starting the development server...
✔ Webpack Compiled successfully in 13.63s
WARNING Compiled with 15 warnings 13:26:56
warning in ./src/pages/user/model.js
"export 'createUser' was not found in 'api'
warning in ./src/pages/user/components/Filter.js
"export 'default' (imported as 'city') was not found in 'utils/city'
warning in ./src/pages/user/components/Modal.js
"export 'default' (imported as 'city') was not found in 'utils/city'
warning in ./src/pages/login/model.js
"export 'loginUser' was not found in 'api'
warning in ./src/models/app.js
"export 'logoutUser' was not found in 'api'
warning in ./src/pages/dashboard/model.js
"export 'queryDashboard' was not found in 'api'
warning in ./src/pages/post/model.js
"export 'queryPostList' was not found in 'api'
warning in ./src/models/app.js
"export 'queryRouteList' was not found in 'api'
warning in ./src/pages/user/$id/models/detail.js
"export 'queryUser' was not found in 'api'
warning in ./src/models/app.js
"export 'queryUserInfo' was not found in 'api'
warning in ./src/pages/user/model.js
"export 'queryUserList' was not found in 'api'
warning in ./src/pages/dashboard/model.js
"export 'queryWeather' (imported as '_queryWeather') was not found in 'api'
warning in ./src/pages/user/model.js
"export 'removeUser' was not found in 'api'
warning in ./src/pages/user/model.js
"export 'removeUserList' was not found in 'api'
warning in ./src/pages/user/model.js
"export 'updateUser' was not found in 'api'
App running at:
Browser shows error:
Expected:
Expected no error