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

默认导出语法错误 #217

Open
niupeinan opened this issue Dec 20, 2020 · 0 comments
Open

默认导出语法错误 #217

niupeinan opened this issue Dec 20, 2020 · 0 comments

Comments

@niupeinan
Copy link

export default (someVal = 123); 默认导出变量这种写法是不受支持的;
const sumVal: number = 123; export default sumVal; 这样写就是正确的。

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

1 participant