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

new adapter + babel setup #104

Open
jamesdixon opened this issue Jun 9, 2017 · 2 comments
Open

new adapter + babel setup #104

jamesdixon opened this issue Jun 9, 2017 · 2 comments

Comments

@jamesdixon
Copy link

jamesdixon commented Jun 9, 2017

Hi,

I'm working on an adapter for Objection.js and ran into the following error when attempting to run tests for it:

ObjectionAdapter #build builds the model:
     TypeError: Class constructor Model cannot be invoked without 'new'
      at new DummyObjectionModel (test/test-helper/DummyObjectionModel.js:32:145)

Looking at the Objection repo, they claim it has something to do with the Babel setup.

Do you have any thoughts on what would need to be changed to make things work with the current Factory Girl setup? I'm a complete newb with regards to Babel, so was hoping you might have some advice.

Thanks!

@oliviertassinari
Copy link

Yes, we have been facing this issue too. We had to hack the babel config, I can't remember how.

@jamesdixon
Copy link
Author

@oliviertassinari any chance you could share your babel config? Would be greatly appreciated!

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