Giter Site home page Giter Site logo

@umijs/plugin-request功能bug about plugins HOT 4 CLOSED

umijs avatar umijs commented on June 22, 2024
@umijs/plugin-request功能bug

from plugins.

Comments (4)

yutingzhao1991 avatar yutingzhao1991 commented on June 22, 2024

是哪个配置无效?怎么使用的?能否提供下最下复现的仓库代码看看。

from plugins.

hzgotb avatar hzgotb commented on June 22, 2024

是哪个配置无效?怎么使用的?能否提供下最下复现的仓库代码看看。

umi/core/plugin.ts 没有注册到 request

from plugins.

calefy-chen avatar calefy-chen commented on June 22, 2024

@yutingzhao1991
src/app.ts中定义的request内容,并没有被写入到 .umi/plugin-request/request.ts 中。
其中模板中部分代码缺失:

const requestConfig: RequestConfig = plugin.applyPlugins({
  key: 'request',
  type: ApplyPluginsType.modify,
  initialValue: {/* 这里缺少把app.ts中配置的内容引进来 */},
});

另外一个奇怪的现象是,手动修改上面的文件,引入@/app,怎么也拿不到request,全部的对象可以看到,但是就拿不到request。。

from plugins.

yutingzhao1991 avatar yutingzhao1991 commented on June 22, 2024

修复了 #86

from plugins.

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.