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

没有babel为什么还可以使用import/export的语法? #1

Open
a67586646 opened this issue May 11, 2017 · 3 comments
Open

没有babel为什么还可以使用import/export的语法? #1

a67586646 opened this issue May 11, 2017 · 3 comments

Comments

@a67586646
Copy link

您好,现在初学Node,看到了您的《如何使用koa2+es6/7打造高质量Restful API》一文,但是在我的Node版本7.10环境下使用import/export会报错,所以我想问问您是怎么解决的?

@wardenger
Copy link

我也想问这个问题,我用的是node 7.10.0,但是还是会报错。
我是指model文件里创建schema的时候,

import mongoose from 'mongoose'

我也注意到
这个项目在创建model的时候用的是require这种方式

@jane-
Copy link

jane- commented Jan 2, 2018

我也想问这个问题, 你是怎么做到的

@jane-
Copy link

jane- commented Jan 3, 2018

原来是runkoa 这个,看来koa 还是要好好研究一番

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

3 participants