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

按照说明安装完毕后运行报错 #1

Closed
meltifa opened this issue Aug 2, 2018 · 3 comments
Closed

按照说明安装完毕后运行报错 #1

meltifa opened this issue Aug 2, 2018 · 3 comments

Comments

@meltifa
Copy link

meltifa commented Aug 2, 2018

先是
Can not find plugin egg-generator
安装egg-generator后可以运行,但是添加数据又报错
ERROR 9916 [-/127.0.0.1/-/20ms POST /generator/crud] nodejs.TypeError: model.getQueryInterface is not a function

@callmez
Copy link
Owner

callmez commented Aug 2, 2018

报下 egg-generator的版本和egg-sequelize的版本

@meltifa
Copy link
Author

meltifa commented Aug 2, 2018

egg-generator 1.1.3
egg-isequelize 2.0.0-beta.3

@callmez
Copy link
Owner

callmez commented Aug 2, 2018

这个代码是没有问题的.因为我现在就是在跑这个
你可以看
egg-generator/app/service/generator/Crud.js#28行
egg-isequelize/lib/modelLoader#22行
都做了兼容

@callmez callmez closed this as completed Aug 12, 2018
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