-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Class constructor RESTDataSource cannot be invoked without 'new' #1388
Comments
What target do you have specified in your |
Thanks for the tip. I've updated my
But I'm still getting the same error. |
Hmmm, that is really surprising. Is there any chance you're transpiling the resulting JavaScript further with Babel? Or else maybe you could try to clean your output directory and recompile? |
Looks like I had some caching issues that we're preventing the change from taking affect. Thanks for your help! |
If my compiler is targeting es5 and I'm unable to change it for other reasons, how would go about integrating a REST data source into my Apollo server? |
@adampetrie how did you manage to solve it, what cashing issues? |
Im new to Apollo and GraphQL and Im trying to get a basic server up and running in Typescript however whenever I try to query my local playground I get the following error response:
Class constructor RESTDataSource cannot be invoked without 'new'
I've followed the docs and have setup my server as follows:
and
Can anyone offer some insight? Thanks
The text was updated successfully, but these errors were encountered: