Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.0 build 发布求助 #67

Closed
dehyang opened this issue May 12, 2022 · 5 comments
Closed

2.1.0 build 发布求助 #67

dehyang opened this issue May 12, 2022 · 5 comments

Comments

@dehyang
Copy link

dehyang commented May 12, 2022

1.x的时候很多没有严格按照ts来写,本来也不打算用的。

现在2.x很多编译不通过,能不能把这个禁掉吗?

@lzxb
Copy link
Contributor

lzxb commented May 12, 2022

都有哪些类型错误?这个类型错误和Genesis没有什么关系才对。

@dehyang
Copy link
Author

dehyang commented May 12, 2022

image

1.x的编译命令,但是版本升级到2.1.0 卡在92

2.x的等会截图

@dehyang
Copy link
Author

dehyang commented May 12, 2022

都有哪些类型错误?这个类型错误和Genesis没有什么关系才对。

src/utils/request.ts:130:42 - error TS2339: Property '_paiApiLists' does not exist on type 'Window & typeof globalThis'.

130 const index = window._paiApiLists.indexOf(
~~~~~~~~~~~~

src/utils/request.ts:133:28 - error TS2339: Property '_paiApiLists' does not exist on type 'Window & typeof globalThis'.

133 window._paiApiLists.splice(index, 1);
~~~~~~~~~~~~

src/utils/request.ts:134:32 - error TS2339: Property '_paiApiLists' does not exist on type 'Window & typeof globalThis'.

134 if (window._paiApiLists.length <= 0) {
~~~~~~~~~~~~

src/utils/request.ts:135:32 - error TS2339: Property '_elloading' does not exist on type 'Window & typeof globalThis'.

135 window._elloading.close();
~~~~~~~~~~

src/utils/request.ts:136:32 - error TS2339: Property '_elloading' does not exist on type 'Window & typeof globalThis'.

136 window._elloading = null;
~~~~~~~~~~

src/utils/request.ts:139:37 - error TS2339: Property 'noLogin' does not exist on type 'AxiosRequestConfig'.

@dehyang
Copy link
Author

dehyang commented May 12, 2022

image

1.x的编译命令,但是版本升级到2.1.0 卡在92

2.x的等会截图

用以前的编译命令是编译通过了。。92卡了一点时间!!先用着吧!!

@lzxb
Copy link
Contributor

lzxb commented May 12, 2022

genesis 编译的时候不会执行类型检查的。

@lzxb lzxb closed this as completed May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants