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
There is a problem that I have when extending classes from packages in node_modules e.g. sequelize and other tools such as apollo-rest-client. It is caused by trying to extend transpiled classes.
Unfortunately, that doesn't work with razzle, presumably because @babel/plugin-transform-runtime is used which is one of the other suggestions to solve this: remove that library.
Does anyone have this same problem and possibly a workaround? It's starting to hit me in more and more of the libraries I want to use.
The text was updated successfully, but these errors were encountered:
There is a problem that I have when extending classes from packages in
node_modules
e.g.sequelize
and other tools such asapollo-rest-client
. It is caused by trying to extend transpiled classes.Discussions about this can be found here:
sequelize/sequelize#7840
apollographql/apollo-server#2216
and many other places.
There is a PR open for this issue @babel babel/babel#8656 bur who knows if and when it gets merged.
The common suggested workaround is applying
Unfortunately, that doesn't work with
razzle
, presumably because@babel/plugin-transform-runtime
is used which is one of the other suggestions to solve this: remove that library.Does anyone have this same problem and possibly a workaround? It's starting to hit me in more and more of the libraries I want to use.
The text was updated successfully, but these errors were encountered: