Ant-design-pro: 🐛[BUG]请问大佬,为什么无论怎么选择,都无法切换成JS语言,怎么下都是TS,求解答

Created on 19 May 2020  ·  12Comments  ·  Source: ant-design/ant-design-pro

🐛 bug 描述

按照官方介绍下载,无论怎么下载都是TS语言,无法下载成JS语言

📷 复现步骤

  • yarn create umi myapp
  • ❯ ant-design-pro
  • ❯ Pro V4
  • ❯ JavaScript
  • ❯ simple
  • antd@4

🏞 期望结果

希望项目是JS语言

💻 复现代码

© 版本信息

  • Ant Design Pro 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

image
image

🛑 bug

All 12 comments

Choose ‘No’ for the question that ‘Be the first to experience the new umi@3’.

Choose ‘No’ for the question that ‘Be the first to experience the new umi@3’.

what do you mean? How to resolve?

@JAMIERWANG no this option

you need update create umi version

you need update create umi version

升级到 [email protected] 还是不行

请问解决了吗。

@ISBN9527 清理一下全局的 babel 和 ts 依赖,最近碰到的都是全局依赖不兼容语法造成的

DefaultSettings 报错如何解决的?

一開始會是ts沒錯,yarn之後會轉成js

DefaultSettings 重安裝create-umi有用

基于官方的仓库,我自己搞了一个js版本。
https://github.com/hankaibo/myantdpro
基本上就是把官方的 ts 换成了 js,并且在其基础上集成了一些公共页面,调用真实的后台接口。
你可以参考一下,希望帮到你。

无法使用js 尝试使用ts开发

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ·  3Comments

kaoding picture kaoding  ·  3Comments

cheung1111 picture cheung1111  ·  3Comments

renyi818 picture renyi818  ·  3Comments

gaoqiang19514 picture gaoqiang19514  ·  3Comments