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

在ts中路由定义时无法使用import()定义异步子组件 #1847

Closed
yangdan8 opened this issue Oct 25, 2017 · 1 comment
Closed

在ts中路由定义时无法使用import()定义异步子组件 #1847

yangdan8 opened this issue Oct 25, 2017 · 1 comment

Comments

@yangdan8
Copy link

Version

3.0.1

Reproduction link

https://router.vuejs.org/zh-cn/advanced/lazy-loading.html#

Steps to reproduce

无法使用import()定义异步子组件

What is expected?

无法使用import()定义异步子组件

What is actually happening?

无法使用import()定义异步子组件


无法使用import()定义异步子组件

@posva
Copy link
Member

posva commented Oct 25, 2017

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server, gitter or StackOverflow.


I'm not very familiar with ts but it looks like it should work (microsoft/TypeScript#12364). Anyways, as long as it returns a Promise, vue-router should be able to handle it, if it doesn't work, then you can open an issue with a repro

@posva posva closed this as completed Oct 25, 2017
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