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

Add Relay plugin configuration: Unexpected error #3

Closed
damassi opened this issue Aug 14, 2022 · 3 comments
Closed

Add Relay plugin configuration: Unexpected error #3

damassi opened this issue Aug 14, 2022 · 3 comments

Comments

@damassi
Copy link

damassi commented Aug 14, 2022

After setting up next and running npx @tobiastengler/create-relay-app and selecting the next option, this output appears:

test [main] % npx @tobiastengler/create-relay-app
? Select the toolchain your project is using Next.js
? Select the language of your project Typescript
? Select the path to your GraphQL schema file ./src/schema.graphql
? Select the package manager you wish to use to install packages npm

✔ Add Relay dependencies: react-relay
✔ Add Relay devDependencies: relay-compiler @types/react-relay
✔ Add Relay configuration to package.json
✖ Add Relay plugin configuration   Unexpected error

### NEXT STEPS ###
1. Replace ./src/schema.graphql with your own GraphQL schema file.
2. Replace the HOST variable in the RelayEnvironment.ts file.

Not sure why the last step yields Unexpected error.

@damassi damassi changed the title ✖ Add Relay plugin configuration: Unexpected error Add Relay plugin configuration: Unexpected error Aug 14, 2022
@tobias-tengler
Copy link
Owner

You need to run with the @experimemtal tag. Otherwise it chooses the first version I ever published. I'll soon publish a v1, so then it should no longer be an issue. Let me know if this resolves your issue. :)

@tobias-tengler
Copy link
Owner

I've also noticed another issue with next, when not using JavaScript. I'm looking into it :)

@tobias-tengler
Copy link
Owner

All issues with next should be resolved in the latest version. I'm publishing a v0.0.1 in a few minutes :)

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