umi2.11.1 version under the project started error You shoule not use <Switch> ouside a <Router>

Description: https://github.com/umijs/umi/issues/3576

Experience: umi + dependencies under dva framework is a large and complex dependency tree dependent version update will cause changes in version does not support the change may lead to some code, run it will error, so I think the best idea is to use yarn to install dependencies, use these dependencies yarn.lock lock lock version, this problem can be avoided

Guess you like

Origin www.cnblogs.com/qq1170623178/p/12010961.html