-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Next.s 9 | API | graphql - Can't resolve 'fs' in /api/index.ts #8134
Comments
I think @huv1k fixed this yesterday. |
Publishing a new canary version right now so that you can verify. https://github.com/zeit/next.js/releases/tag/v9.0.3-canary.4 It might take a few minutes for it to show up on npm! |
The problem is still occurs in the canary.4. |
Hey @mzygmunt, could you share minimal reproduction? |
Here you are https://github.com/mzygmunt/api-routes-graphql-example |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Examples bug report
Example name
api-routes-graphql
Describe the bug
When I changed the name of the GraphQL API file from /api/graphql.js to /api/index.js, I noticed that the following error appears when building (after executing next build)
To Reproduce
Expected behavior
After changing the file name, API should be available at /api.
Screenshots
System information
The text was updated successfully, but these errors were encountered: