Giter Site home page Giter Site logo

Comments (4)

Wu-kung avatar Wu-kung commented on June 15, 2024

清空缓存,重装依赖试下呢。

rm -rf node_modules && rm -rf src/.umi && pnpm install

from umi.

qiyaozu avatar qiyaozu commented on June 15, 2024

其实这个步骤我已经做过了 还是你不行

from umi.

Wu-kung avatar Wu-kung commented on June 15, 2024

其实这个步骤我已经做过了 还是你不行

抱歉,useModel useIntl@umi/max 内置的能力。如果使用了 @umijs/max 可以使用 max 命令来替换 umi

详细可参考:https://umijs.org/docs/introduce/upgrade-to-umi-4

from umi.

fz6m avatar fz6m commented on June 15, 2024

umi 4 分为 umi 和 max (@umijs/max) ,前者不内置任何插件,如果需要 model / dva 等功能要自己添加这些插件,后者内置了一堆插件,方便直接开启使用。

普通 umi 项目要使用某个功能,只要安装 @umijs/plugins 然后配一下就行了,参考:使用插件

你这里需要配一下 plugins: ['@umijs/plugins/dist/model']model: {} ,如果还用到了其他功能,需要一起都配置打开,或者就使用 max ,省去安装 @umijs/plugins 和配置 plugins: [...]

from umi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.