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

对于js文件会使用require引入 #65

Open
JOU-amjs opened this issue Jun 2, 2020 · 1 comment
Open

对于js文件会使用require引入 #65

JOU-amjs opened this issue Jun 2, 2020 · 1 comment

Comments

@JOU-amjs
Copy link

JOU-amjs commented Jun 2, 2020

我的项目是中途换到ts的,所以项目里混合了js和ts,更新到新版本后,对于js导出的controller或service或用import xx = require(xxx)引入,但我的js代码里也统一使用了export default,导致获取引入的对象是一个{ default: [controller|service] }报错了,这个有办法配置解决吗?

@whxaxes
Copy link
Member

whxaxes commented Jun 3, 2020

js 代码是怎么用 export default 的?node 14 ?

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