Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

metis 前端启动报错 #102

Open
Liyaozhou opened this issue Nov 23, 2020 · 3 comments
Open

metis 前端启动报错 #102

Liyaozhou opened this issue Nov 23, 2020 · 3 comments

Comments

@Liyaozhou
Copy link

[root@hlink1 uweb]# npm run build

[email protected] build /root/Metis/uweb
node lib/uw-frame/lib/cli/build

clean-webpack-plugin: /root/Metis/uweb/dist has been removed.
ℹ 「atl」: Using [email protected] from typescript
ℹ 「atl」: Using tsconfig.json from /root/Metis/uweb/lib/uw-frame/lib/config/tsconfig.json
ℹ 「atl」: Checking started in a separate process...
✖ 「atl」: Checking finished with 1 errors

@zhoukang0807
Copy link

zhoukang0807 commented Jan 12, 2021

文件:Metis\uweb\lib\uw-frame\lib\core\builtIn\login.ts
Ts类型转换报错 42行和43行 替换为
let queryWoTicket = qs.stringify(queryWithoutTicket);
history.replace(${pathname}${queryWoTicket === '' ? '' : ?${queryWoTicket}});

@Tomcroods
Copy link

Tomcroods commented Jun 27, 2021

文件:Metis\uweb\lib\uw-frame\lib\core\builtIn\login.ts
Ts类型转换报错 42行和43行 替换为
let queryWoTicket = qs.stringify(queryWithoutTicket);
history.replace(${pathname}${queryWoTicket === '' ? '' : ?${queryWoTicket}});

感谢zhoukang0807的评论,但其中的$和}前面的特殊符号在github评论区显示不出来,实际上要表达的意思是使用一个新的变量queryWoTicket。从而避免类型转换问题。

@fudiyang
Copy link

你好,我也是前端启动报错,也有你提到的这个错误,按你的方式解决了,但还有6个TS2339: Property 'iframe' does not exist on type '{}'.这种类似的问题,编译成功后,但访问地址没有内容,请问你还有编译运行成功后的包吗

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants