Module build failed: UnhandledSchemeError when using gatsby function #38481
Labels
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
I'm trying to write a gatsby function, but it seems like webpack can't compile it.
I have create a repo which is base on hello-world starter and add a tiny function in it to reproduce this issue, you can find the link below.
Reproduction Link
https://github.com/Talaxy009/gatsby-function-issue
Steps to Reproduce
Expected Result
The
/api/hello
should return "hello"Actual Result
The
/api/hello
return error message from webpackEnvironment
Config Flags
Nope
The text was updated successfully, but these errors were encountered: