-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
API(8.1.1-canary.28): error logged when importing child_process #7334
Comments
Actually, there is a problem, this seems to break rendering all the pages, with the same error. |
Note that you're using experimental features. This in particular is caused by the /api implementation not being complete yet. |
I'm aware, just test driving new features. I can hold off on opening a ticket like this if you think it's too early, or report somewhere else. |
This is fixed in latest canary 🚀 |
I am getting this error again in canary of 9. Any advice? |
@huv1k I am also running into the same issue trying to integrate the GraphQL API endpoints example with Prisma2. The query engine, PhotonJS, seems to depend on 'child_process', which results in an error every time I hit the GraphQL endpoint (or any other endpoint that attempts to use PhotonJS).
|
This is most likely how is photon getting the path to the binary. I think it uses |
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. |
Bug report
Describe the bug
Errors are shown in the logs when trying to import
child_process
in an api function.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
http://localhost:3000/api/hello
in the browserExpected behavior
No error
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Functionally there doesn't seem to be any problem, looks like it's just a logging problem.
The text was updated successfully, but these errors were encountered: