You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since feathers-sequelize is a server side module and is not intended to be used with Node 4 or older there should be no reason to transpile to ES5 though. I recommend using Node 6 (or ES2015) as the transpilation target.
Steps to reproduce
I'm attempting to extend the Service class in the library like so:
I'm also transpiling my code to ES5 using babel.
Expected behavior
The service should be created.
Actual behavior
Breaks at runtime with the following error:
TypeError: Class constructor Service cannot be invoked without 'new'
I believe this is because my transpiled code isn't trying to call the ES6 as a function without the
new
keyword.If there was an ES5 version of the package published I'd be able to extend.
Or is there a better way on my end to solve this?
The text was updated successfully, but these errors were encountered: