-
Notifications
You must be signed in to change notification settings - Fork 31
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
Calling populate() gets TypeError: Cannot read property 'sync' of undefined #89
Comments
Your error is unexpected. I'll try to reproduce it locally to gain more insight. |
I also have this issue, node version doesn't seem to make a difference |
I bumped into this. Looking at the source I discovered that you can only call |
I also have this problem, is there any solution already? |
Thank to vnen I think I figured this out. Kind of stupid: You cann't populate the database directly after creating the handler. Call handler.populate after defining the database resource. In my case:
|
I'm just setting up jsonapi-server to mock our JSON:API, but while I try to populate the DB, I get the following error:
I kept my resource file very simple and already tried to remove the attributes, but that doesn't make a difference:
What might it be that I'm not aware of? 🤗
The text was updated successfully, but these errors were encountered: