Coder Social home page Coder Social logo

umi-ui's People

Contributors

chelestewang avatar chenshuai2144 avatar juzhiyuan avatar kaynewang avatar kuitos avatar qiaolei1973 avatar xiaohuoni avatar ycjcl868 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

umi-ui's Issues

umi 预览失败

What happens?

最小可复现仓库

请使用 yarn create umi 创建,并上传到你的 GitHub 仓库

复现步骤,错误日志以及相关配置

相关环境信息

  • Umi 版本:3.4.25
  • Node 版本:14.0.0
  • 操作系统:window10

image

同一个项目因为全选不通需要同时启动多个服务,启动时一直报错

What happens?

in ./src/.umi/umi.ts

Module build failed (from ./node_modules/@umijs/deps/compiled/babel-loader/index.js):
Error: ENOENT: no such file or directory, open '/Users/admin/work/o2o-admin/src/.umi/umi.ts'

@ multi ./node_modules/umi/node_modules/@umijs/preset-built-in/bundled/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/.umi/umi.ts

最小可复现仓库

请使用 yarn create umi 创建,并上传到你的 GitHub 仓库

复现步骤,错误日志以及相关配置

相关环境信息

  • Umi 版本:3.4.0
  • Node 版本:14.16.0
  • 操作系统:mac 11.2.2

可否让 umi ui 的端口可配置

Background

umi ui 的默认端口为 3000 但在有些情况下可能会和本机的一些其他已存在的服务端口冲突

希望能增加新的可选配置来调整 umi ui 的默认端口

Proposal

添加一个新的环境变量 UMI_UI_PORT 通过该变量来调整 umi ui 的默认启动端口

Additional context

none

资产中无任何内容

What happens?

资产中的内容无法看到
image

Context

  • Umi Version: 3.1.0
  • Node Version:
  • Platform: window10

config配置headScripts时,不能使用本地静态资源图片, 使用不生效, 只能使用云地址

全局配置一个script时, logo_src的地址只能使用云地址, 本地资源无论用@/的地址还是../的相对地址都不生效

文件位置config文件夹的config.ts

  headScripts: [
    {
      type: 'text/javascript',
      charset: 'utf-8',
      src: 'https://gw.alipayobjects.com/os/rmsportal/xsxusXNIcXwiGqtNiyOd.js',
      chat_url: 'https://cschat.antcloud.com.cn/index.htm',
      // logo_src: 'https://i.alipayobjects.com/e/201401/1tdi7nR70h.png',
      // 下面logo_src使用本地资源不能用
      logo_src: '@/assets/images/Andon.svg',
      logo_position: 'rm',
      tntInstId: 'dqe_08ia&scene=SCE01217624',
    },
  ],

[Feature Request]umi3甚至umi2的umi UI能支持私有区块吗

Background

公司内部开发了很多模板以及组件,但是用的都是内网源,无法发布到github上,也不方便发到社区使用

Proposal

能否支持添加私有区块库,甚至对默认的antd pro和umi block的库删除呢

Additional context

Add any other context or screenshots about the feature request here.

Umi UI 让人爱,又让人恨!

这么好的Umi UI,一大堆BUG
创建模板可以,创建区块就不行!

每次创建就得重启,创建区块就报错!

本来UI,是傻瓜化的创建的,多好啊!

结果一堆BUG,然我们都没有心思在等待下去了!

说好的不是开箱即用吗!!!

只能新建模块,为什么不能删除模块呢!

而且新建的模块,必须要重新start,才可以添加区块!

否则根本就添加不了,添加就报错!!!

What happens?

最小可复现仓库

请使用 yarn create umi 创建,并上传到你的 GitHub 仓库

复现步骤,错误日志以及相关配置

相关环境信息

  • Umi 版本
  • Node 版本
  • 操作系统

类型“Window & typeof globalThis”上不存在属性“GUmiUIFlag”

What happens?

error in ./src/.umi/umi.ts

Context

Syntax Error: SyntaxError: E:\gh-code\my-personal-website\client-react\umi-admin\src.umi\umi.ts: Bad character escape sequence (13:76)

11 | (() => {
12 | // Runtime block add component

13 | window.GUmiUIFlag = require('E:\gh-code\my-personal-website\client-react\umi-admin\node_modules@umijs\plugin-ui-blocks\lib\sdk\flagBabelPlugin\GUmiUIFlag.js').default;
| ^
14 |
15 | // Enable/Disable block add edit mode
16 | window.addEventListener('message', (event) => {

@ multi ./node_modules/@umijs/bundler-webpack/lib/webpackHotDevClient/webpackHotDevClient.js ./src/.umi/umi.ts

preset-ui 的 FormRegister 组件引入报错

preset-ui的 FormRegister 组件通过页面引入时报错,FormRegister/index.tsx 里

这里的styles是引入的./index.less,但index.less里的文件内容为空,需要定义下样式吧。

image

Types Error

npm run lint

ts全报红

代码里有些还是antd3的语法,
例如

<Row type='flex'></Row>

外部依赖已经换成 antd: ^4.0.0了,type属性已经删除了..

请问有umi block内网实践吗

在内网umi block add url 总是安装依赖下载报错,如何配置成内网仓库
umi ui也不显示资产,如何配置私有资产路径

[RFC] 不支持 本地区块么

背景

umi2版本谢了很多本地区块,升级到3之后无法使用

思路

如何添加本地区块

跟进

  • some task
  • PR URL

添加的【注册结果页】 模板 代码运行不起来

我在 umi ui里 资产=》模板=》用户=》 注册结果页 添加后

然后 运行出错了

位于 UserRegisterResult/index.tsx 中的
import { FormattedMessage, formatMessage, Link } from 'umi';

这句代码出错

里面没有 FormattedMessage 和 formatMessage

体验反馈

  • dev 启动 mini 时,Umi UI 地址与 dev 地址易混淆 #6

image

资产

  • 三列排列空出一个

https://user-images.githubusercontent.com/13595509/73436754-11b56280-4386-11ea-9b63-73f614e528e0.png

  • git clone 用的 http 协议,有时候会走代理,导致 clone 失败

https://user-images.githubusercontent.com/13595509/73436472-8b008580-4385-11ea-92e7-94650de7ef83.png

  • 加载过慢,不停地 loading

https://user-images.githubusercontent.com/13595509/73436279-2f35fc80-4385-11ea-99d0-4e981bf17ecb.png

  • 资产图片预览

https://user-images.githubusercontent.com/13595509/73435998-a74ff280-4384-11ea-9fac-4289836ed093.png

添加模板失败

按以下流程进行操作:
1、进入目录后,执行命令:$ yarn create @umijs/umi-app
2、$ yarn install
3、修改配置
默认的脚手架内置了 @umijs/preset-react,包含布局、权限、国际化、dva、简易数据流等常用功能。比如想要 ant-design-pro 的布局,编辑 .umirc.ts 配置 layout: {},

import { defineConfig } from 'umi';

export default defineConfig({

  • layout: {},
    routes: [
    { path: '/', component: '@/pages/index' },
    ],
    });

4、yarn add @umijs/preset-ui
5、yarn add @umijs/preset-react
6、然后运行yarn start,进行模板添加,添加空白模板。出现错误提示:
⚓ Start git fetch
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
Already on 'master'
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
Already on 'master'
🎉 Success git checkout master

⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
Already on 'master'
🎉 Success git checkout master

⚓ Start git pull
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
Already on 'master'
🎉 Success git checkout master

⚓ Start git pull
Already up to date.
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
Already on 'master'
🎉 Success git checkout master

⚓ Start git pull
Already up to date.
🎉 Success git pull

⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
Already on 'master'
🎉 Success git checkout master

⚓ Start git pull
Already up to date.
🎉 Success git pull

📦 Start generate files
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
Already on 'master'
🎉 Success git checkout master

⚓ Start git pull
Already up to date.
🎉 Success git pull

📦 Start generate files
Faild generate files: Trying to copy from a source that does not exist: C:\Users\Administrator.umi\blocks\github.com\ant-design\pro-blocks\EmptyPage\src\index.less

⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
Already on 'master'
🎉 Success git checkout master

⚓ Start git pull
Already up to date.
🎉 Success git pull

📦 Start generate files
Faild generate files: Trying to copy from a source that does not exist: C:\Users\Administrator.umi\blocks\github.com\ant-design\pro-blocks\EmptyPage\src\index.less

🚧 Execute task error: AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:\Users\Administrator.umi\blocks\github.com\ant-design\pro-blocks\EmptyPage\src\index.less
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout master
Your branch is up to date with 'origin/master'.
Already on 'master'
🎉 Success git checkout master

⚓ Start git pull
Already up to date.
🎉 Success git pull

📦 Start generate files
Faild generate files: Trying to copy from a source that does not exist: C:\Users\Administrator.umi\blocks\github.com\ant-design\pro-blocks\EmptyPage\src\index.less

🚧 Execute task error: AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:\Users\Administrator.umi\blocks\github.com\ant-design\pro-blocks\EmptyPage\src\index.less

但很明显, C:\Users\Administrator.umi\blocks\github.com\ant-design\pro-blocks\EmptyPage\src\index.less是存在的。
image

The environment variable transcoding problem in HTML makes the decodeuricomponent unrecognized

What happens?

A clear and concise description of what the bug is.

URIError: Failed to decode param '/%3C%=%20BASE_URL%20%%3Estatic/css/xxx.css'
    at decodeURIComponent (<anonymous>)
    at decode_param (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:57292)
    at Layer.match (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:56868)
    at matchLayer (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:55230)
    at next (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:52269)
    at compression (C:\abc\node_modules\@umijs\deps\compiled\compression\index.js:1:3942)
    at Layer.handle [as handle_request] (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:56673)
    at trim_prefix (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:53129)
    at C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:52730
    at Function.process_params (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:53268)
    at next (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:52631)
    at expressInit (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:37682)
    at Layer.handle [as handle_request] (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:56673)
    at trim_prefix (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:53129)
    at C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:52730
    at Function.process_params (C:\abc\node_modules\@umijs\deps\compiled\express\index.js:1:53268)

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue.
Use yarn create umi then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior:

  1. yarn add umi -D
  2. umi dev

Context

  • Umi Version: 3.5.17
  • Node Version: 14.0
  • Platform: win10

[Feature Request] 请默认移除 【国际化】

umi3

image

添加模板的时候, 他默认没有选中, 所以有些模块我安装后 会报错 如:#49

建议 ,默认 就选中这个

当用户 切换 这个按钮的时候, 后台 先判断 用户是否 启用了国际化, 如果没有启用,就要求用户先启用

BUG-打开不正确项目时,umi-ui没法再用

What happens?

如题

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue.
Use yarn create umi then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior:

  1. 打开umi脚手架构建的项目
    2.再打开老版本 2.0 umi的项目

Expected behavior
1.正常使用
2.

Context

image

umi.20ab616f.js:1 eeeeee
{title: "依赖文件没找到。", message: "Cannot find module 'umi-plugin-react' from '/Users/guoweipeng/code/maxfaith/miop/miop_ui'", stack: "Error: Cannot find module 'umi-plugin-react' from …a/home/node_modules/@umijs/ui/lib/UmiUI.js:407:7)", actions: Array(2)}
title: "依赖文件没找到。"
message: "Cannot find module 'umi-plugin-react' from '/Users/guoweipeng/code/maxfaith/miop/miop_ui'"
stack: "Error: Cannot find module 'umi-plugin-react' from '/Users/guoweipeng/code/maxfaith/miop/miop_ui'↵ at Function.resolveSync [as sync] (/Users/guoweipeng/code/weya/home/node_modules/resolve/lib/sync.js:81:15)↵ at /Users/guoweipeng/code/weya/home/node_modules/@umijs/core/lib/Service/utils/pluginUtils.js:109:29↵ at Array.map ()↵ at getPluginsOrPresets (/Users/guoweipeng/code/weya/home/node_modules/@umijs/core/lib/Service/utils/pluginUtils.js:108:99)↵ at resolvePlugins (/Users/guoweipeng/code/weya/home/node_modules/@umijs/core/lib/Service/utils/pluginUtils.js:202:19)↵ at new Service (/Users/guoweipeng/code/weya/home/node_modules/@umijs/core/lib/Service/Service.js:177:59)↵ at new Service (/Users/guoweipeng/code/weya/home/node_modules/umi/lib/ServiceWithBuiltIn.js:50:5)↵ at UmiUI.getService (/Users/guoweipeng/code/weya/home/node_modules/@umijs/ui/lib/UmiUI.js:249:23)↵ at /Users/guoweipeng/code/weya/home/node_modules/@umijs/ui/lib/UmiUI.js:369:40↵ at Generator.next ()↵ at asyncGeneratorStep (/Users/guoweipeng/code/weya/home/node_modules/@umijs/ui/lib/UmiUI.js:212:103)↵ at _next (/Users/guoweipeng/code/weya/home/node_modules/@umijs/ui/lib/UmiUI.js:214:194)↵ at /Users/guoweipeng/code/weya/home/node_modules/@umijs/ui/lib/UmiUI.js:214:364↵ at new Promise ()↵ at /Users/guoweipeng/code/weya/home/node_modules/@umijs/ui/lib/UmiUI.js:214:97↵ at UmiUI.openProject (/Users/guoweipeng/code/weya/home/node_modules/@umijs/ui/lib/UmiUI.js:407:7)"
actions: Array(2)
0: {title: "重新安装依赖", handler: {…}}
1: {title: "返回主页", browserHandler: "BACK_TO_HOME"}

  • Umi Version:
    3.0.7
  • Node Version:
    12.16.1
  • UMI_UI Version:
    2.0.6
  • Platform:
    mac

[Feature Request] 后续是否考虑支持umi4

Background

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Proposal

Describe the solution you'd like, better to provide some pseudo code.

Additional context

Add any other context or screenshots about the feature request here.

My local environment version is 3.3.1, but is detected without this command

What happens?

umi ui
run command failed, command ui does not exists.

PS C:\Users\horne> umi help
  Usage: umi <command> [options]

  Commands:

    build     build application for production
    config    umi config cli
    dev       start a dev server for development
    generate  generate code snippets quickly
    help      show command helps
    plugin    inspect umi plugins
    version   show umi version
    webpack   inspect webpack configurations

  Run `umi help <command>` for more information of specific commands.
  Visit https://umijs.org/ to learn more about Umi.

本地运行开发调试出现错误

What happens?

A clear and concise description of what the bug is.

How To Reproduce

Steps to reproduce the behavior:

  1. 按照 README 本地开发调试,出现错误

Expected behavior
1.Screen Shot 2020-04-19 at 15 13 23

Context

  • Umi Version: 最新版本
  • Node Version: v12.13.1
  • Platform: chrome / mac

添加查询表格模板报错

What happens?

用的ant design pro中自带的umi,版本3.0.0,@umijs/preset-ui 版本2.0.9,用umi dev启动后,添加查询表格模板报错,日志信息如下

⚓ Start git fetch
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
Already on 'umi@3'
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
Already on 'umi@3'
🎉 Success git checkout umi@3

⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
Already on 'umi@3'
🎉 Success git checkout umi@3

⚓ Start git pull
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
Already on 'umi@3'
🎉 Success git checkout umi@3

⚓ Start git pull
Already up to date.
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
Already on 'umi@3'
🎉 Success git checkout umi@3

⚓ Start git pull
Already up to date.
🎉 Success git pull

⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
Already on 'umi@3'
🎉 Success git checkout umi@3

⚓ Start git pull
Already up to date.
🎉 Success git pull

📦 Start generate files
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
Already on 'umi@3'
🎉 Success git checkout umi@3

⚓ Start git pull
Already up to date.
🎉 Success git pull

📦 Start generate files
Faild generate files: Trying to copy from a source that does not exist: C:/Users/Administrator/.umi/blocks/github.com/ant-design/pro-blocks/ListTableList/src/components

⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
Already on 'umi@3'
🎉 Success git checkout umi@3

⚓ Start git pull
Already up to date.
🎉 Success git pull

📦 Start generate files
Faild generate files: Trying to copy from a source that does not exist: C:/Users/Administrator/.umi/blocks/github.com/ant-design/pro-blocks/ListTableList/src/components

🚧 Execute task error: AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:/Users/Administrator/.umi/blocks/github.com/ant-design/pro-blocks/ListTableList/src/components
⚓ Start git fetch
🎉 Success git fetch

⚓ Start git checkout umi@3
Your branch is up to date with 'origin/umi@3'.
Already on 'umi@3'
🎉 Success git checkout umi@3

⚓ Start git pull
Already up to date.
🎉 Success git pull

📦 Start generate files
Faild generate files: Trying to copy from a source that does not exist: C:/Users/Administrator/.umi/blocks/github.com/ant-design/pro-blocks/ListTableList/src/components

🚧 Execute task error: AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:/Users/Administrator/.umi/blocks/github.com/ant-design/pro-blocks/ListTableList/src/components

相关环境信息

  • Umi 版本
    umi3.0.0
  • Node 版本
    v12.16.1
  • 操作系统
    win10

点击气泡没有反应

What happens?

npx @umijs/create-umi-app
npm install
npm install @umijs/preset-ui -D
执行完上面命令之后,
运行umi dev,页面上的气泡点击后一直处于加载状态,且报了以下错误 ,
App running at:

  • Local: http://localhost:8001 (copied to clipboard)
  • Network: http://192.168.137.1:8001
    GotError [RequestError]: connect ECONNREFUSED 127.0.0.1:8002
    at ClientRequest. (D:\job\lxspace\umiui\node_modules\got\source\request-as-event-emitter.js:178:14)
    at Object.onceWrapper (events.js:418:26)
    at ClientRequest.emit (events.js:323:22)
    at ClientRequest.origin.emit (D:\job\lxspace\umiui\node_modules@szmarczak\http-timer\source\index.js:37:11) at Socket.socketErrorListener (_http_client.js:426:9)
    at Socket.emit (events.js:311:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
    name: 'RequestError',
    code: 'ECONNREFUSED',
    host: 'localhost:8002',
    hostname: 'localhost',
    method: 'GET',
    path: '/',
    socketPath: undefined,
    protocol: 'http:',
    url: 'http://localhost:8002/',
    gotOptions: {
    path: '/',
    protocol: 'http:',
    slashes: true,
    auth: null,
    host: 'localhost:8002',
    port: '8002',
    hostname: 'localhost',
    hash: null,
    search: null,
    query: null,
    pathname: '/',
    href: 'http://localhost:8002/',
    retry: {
    retries: [Function],
    methods: [Set],
    statusCodes: [Set],
    errorCodes: [Set]
    },
    headers: {
    'user-agent': 'got/9.6.0 (https://github.com/sindresorhus/got)',
    'accept-encoding': 'gzip, deflate'
    },
    hooks: {
    beforeRequest: [],
    beforeRedirect: [],
    beforeRetry: [],
    afterResponse: [],
    beforeError: [],
    init: []
    },
    decompress: true,
    throwHttpErrors: true,
    followRedirect: true,
    stream: false,
    form: false,
    json: false,
    cache: false,
    useElectronNet: false,
    method: 'GET',
    forceRefresh: true
    }
    }
    GotError [RequestError]: connect ECONNREFUSED 127.0.0.1:8002
    at ClientRequest. (D:\job\lxspace\umiui\node_modules\got\source\request-as-event-emitter.js:178:14)
    at Object.onceWrapper (events.js:418:26)
    at ClientRequest.emit (events.js:323:22)
    at ClientRequest.origin.emit (D:\job\lxspace\umiui\node_modules@szmarczak\http-timer\source\index.js:37:11) at Socket.socketErrorListener (_http_client.js:426:9)
    at Socket.emit (events.js:311:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
    name: 'RequestError',
    code: 'ECONNREFUSED',
    host: 'localhost:8002',
    hostname: 'localhost',
    method: 'GET',
    path: '/',
    socketPath: undefined,
    protocol: 'http:',
    url: 'http://localhost:8002/',
    gotOptions: {
    path: '/',
    protocol: 'http:',
    slashes: true,
    auth: null,
    host: 'localhost:8002',
    port: '8002',
    hostname: 'localhost',
    hash: null,
    search: null,
    query: null,
    pathname: '/',
    href: 'http://localhost:8002/',
    retry: {
    retries: [Function],
    methods: [Set],
    statusCodes: [Set],
    errorCodes: [Set]
    },
    headers: {
    'user-agent': 'got/9.6.0 (https://github.com/sindresorhus/got)',
    'accept-encoding': 'gzip, deflate'
    },
    hooks: {
    beforeRequest: [],
    beforeRedirect: [],
    beforeRetry: [],
    afterResponse: [],
    beforeError: [],
    init: []
    },
    decompress: true,
    throwHttpErrors: true,
    followRedirect: true,
    stream: false,
    form: false,
    json: false,
    cache: false,
    useElectronNet: false,
    method: 'GET',
    forceRefresh: true
    }
    }

贴一下package.json
{
"private": true,
"scripts": {
"start": "umi dev",
"build": "umi build",
"prettier": "prettier --write '**/.{js,jsx,tsx,ts,less,md,json}'",
"test": "umi-test",
"test:coverage": "umi-test --coverage"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"
.{js,jsx,less,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"prettier --parser=typescript --write"
]
},
"dependencies": {
"@umijs/preset-react": "1.x",
"@umijs/test": "^3.0.14",
"lint-staged": "^10.0.7",
"prettier": "^1.19.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"umi": "^3.0.14",
"yorkie": "^2.0.0"
},
"devDependencies": {
"@umijs/preset-ui": "^2.1.0"
}
}

  • Umi Version:
    3.0.14
  • Node Version:
    v12.16.1
  • Platform:
    win10

[Feature Request] Internationalisation

Is there any plan to add support for internationalisation? Or at least be able to use the UI in English? Because this tool looks very interesting but I don't speak Chinese at all ;)

Thanks for everything's and your hard work.

添加模板时报错,找不到config/config.js

What happens?

添加模板时报错,找不到config/config.js
windows 系统和 wsl2 系统下均是这个错误

最小可复现仓库

请使用 yarn create @umijs/umi-app 创建,并上传到你的 GitHub 仓库
https://github.com/MakeHui/umi-ui-issue

复现步骤,错误日志以及相关配置

image

Execute task error Error: Error: ENOENT: no such file or directory, open 'config/config.js'
    at E:\Projects\Wogoo\tquestion_admin\node_modules\@umijs\plugin-ui-blocks\lib\ui\server\core\tasks\gitTasks\write_routes.js:88:15
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (E:\Projects\Wogoo\tquestion_admin\node_modules\@umijs\plugin-ui-blocks\lib\ui\server\core\tasks\gitTasks\write_routes.js:46:103)
    at _next (E:\Projects\Wogoo\tquestion_admin\node_modules\@umijs\plugin-ui-blocks\lib\ui\server\core\tasks\gitTasks\write_routes.js:48:194)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
[Asset Error] Error: Error: ENOENT: no such file or directory, open 'config/config.js'
    at E:\Projects\Wogoo\tquestion_admin\node_modules\@umijs\plugin-ui-blocks\lib\ui\server\core\tasks\gitTasks\write_routes.js:88:15
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (E:\Projects\Wogoo\tquestion_admin\node_modules\@umijs\plugin-ui-blocks\lib\ui\server\core\tasks\gitTasks\write_routes.js:46:103)
    at _next (E:\Projects\Wogoo\tquestion_admin\node_modules\@umijs\plugin-ui-blocks\lib\ui\server\core\tasks\gitTasks\write_routes.js:48:194)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

相关环境信息

  • Umi 版本
    [email protected]
  • Node 版本
    v12.18.2
  • 操作系统
    版本:windows10 专业版
    版本号:2004
    操作系统版本:19041.329

为什么最新的代码 npm run ui:build

What happens?

A clear and concise description of what the bug is.

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue.
Use yarn create umi then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior:
1.
2.

Expected behavior
1.
2.

Context

  • Umi Version:
  • Node Version:
  • Platform:

umi-ui 安装区块失败

{ SyntaxError: This experimental syntax requires enabling the parser plugin: 'optionalChaining' (70:17)
at Object.raise (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:6344:17)
at Object.expectPlugin (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:7664:18)
at Object.parseSubscript (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:8448:12)
at Object.parseSubscript (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:5288:18)
at Object.parseSubscripts (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:8434:19)
at Object.parseExprSubscripts (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:8423:17)
at Object.parseMaybeUnary (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:8393:21)
at Object.parseMaybeUnary (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:5668:20)
at Object.parseExprOps (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:8280:23)
at Object.parseMaybeConditional (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:8253:23)
at Object.parseMaybeAssign (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:8200:21)
at Object.parseMaybeAssign (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:5628:20)
at Object.parseExpression (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:8148:23)
at Object.parseStatementContent (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:9917:23)
at Object.parseStatementContent (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:5392:18)
at Object.parseStatement (/Users/kelly/work/demo/umi3/pro_v4/node_modules/@umijs/block-sdk/node_modules/@babel/parser/lib/index.js:9788:17)
pos: 1515,
loc: Position { line: 70, column: 17 },
missingPlugin: [ 'optionalChaining' ] }

项目有人维护吗,添加区块报错 ,根本没法用

What happens?

A clear and concise description of what the bug is.

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue.
Use yarn create umi then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior:
1.
2.

Expected behavior
1.
2.

Context

  • Umi Version:
  • Node Version:
  • Platform:

Open block dev window raise some errors

What happens?

When I create a umi project and run it, to open the block dev window, then raise some errors.

  • Project open failed
  • TypeError: UmiService is not a constructor

Some screenshots

Snip20200407_2
DF2FA7D8-7B70-4EA9-A91D-8685DF66DDB4

[RFC] umi-ui 使用方式很糟糕

背景

个人感觉 Umi UI 是一个可视化的脚手架工具,它可以方便我们创建和管理 Umi 项目。但是我在使用过程中感觉非常混乱,我想用 Umi UI 创建一个 Umi 项目,我首先得拥有一个 Umi 项目然后依赖它,听起来感觉有点不可思议。若 Umi UI 被当做一个插件使用在 Umi 项目中,那么使用 umi dev 启动项目后,打开ui界面理应直接关联这个项目,并且使用Umi ui创建项目的功能已经失去意义。

思路

个人感觉 umi ui 不应该被当成一个插件使用,而应该是个独立的脚手架命令,是个独立的工作台。执行命令直接打开浏览器。不应该依赖于项目运行

umi-ui 查看构建分析报错

What happens?

umi-ui 查看构建分析报错

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue.
Use yarn create umi then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior:

  1. 下载https://landing.ant.design/ 导出的模版到umi创建的脚手架

Expected behavior
1.能够正常查看分析
2.

Context

  • Umi Version:
    3.0.7
  • Node Version:
    12.16.1
  • UMI_UI Version:
    2.0.6
  • Platform:
    mac

关于umi ui私有仓库的问题?

大佬,想问一下关于umi ui当做私有仓库的问题!
本地创建umi ui项目
复现:1.git clone https://github.com/oc-Design/umi-ui.git
2.yarn install
yarn build -w
yarn build:ui -w
3.cd example/app yarn start 进入locallhost: 3000端口,修改本地umi ui样式3000端口的umiui样式发生变化
4.在3000端口的项目新建D:\amyapp\umiui\820\umi-ui-master\examples\antd--进入atnd的3000端口为什么我在本地修改了umi ui的样式在新的antd项目没有关联到
5.能否在umi ui外层创建公共依赖库,在umi ui3000端口创建项目时不重新安装依赖,从umi ui外层导入依赖到新建项目

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.