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
Generators don't work if the api folder is missing #1550
Comments
@bennettrogers Could you please provide the output of |
Yep, here you go. This is in a clean project where all I've run is:
Info:
Thanks! |
I can confirm I'm seeing the same thing
|
So this is the offending line
That whole section should probably be made optional and only printed if there actually are any functions redwood/packages/cli/src/commands/generate/deploy/providers/aws_serverless.js Lines 41 to 67 in 60c232f
|
@bennettrogers You wanna try to submit a PR to fix it? |
PR submitted: #1553 |
I'm trying to start a new Redwood project that won't need the API side. Following the cookbook, I've deleted the
/api
folder and re-runyarn install
. Now when running any generator command I get:Error: ENOENT: no such file or directory, scandir '{projectdir}/api/src/functions'
Running Redwood without the api side has worked in the past.
For now I can work around it by just not using the generators, and instead manually creating pages/components/etc.
The text was updated successfully, but these errors were encountered: