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

UserInputError Not Working With Apollo Server Express 2.0 #1206

Closed
bahamagician opened this issue Jun 20, 2018 · 3 comments
Closed

UserInputError Not Working With Apollo Server Express 2.0 #1206

bahamagician opened this issue Jun 20, 2018 · 3 comments

Comments

@bahamagician
Copy link

I'm using the 2.0 RC version of Apollo Server Express.

Whenever I try to use the "UserInputError", I get the following message:

"message": "UserInputError is not a constructor"

It seems that the UserInputError isn't exported from the version of the package that I'm using.

@evans
Copy link
Contributor

evans commented Jun 20, 2018

Ah sorry! We haven't done another release yet, so the docs are a bit ahead. For the rc.0, you can use BadUserInputError. Once we've released, then UserInputError will work.

@bahamagician
Copy link
Author

bahamagician commented Jun 20, 2018 via email

@evans
Copy link
Contributor

evans commented Jun 21, 2018

The fix is released in RC.1. Please upgrade when you get a chance npm install apollo-server-express@rc

@evans evans closed this as completed Jun 21, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants