-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Gatsby build fails on shared hosting where listing of folder content (e.g /home) is not allowed #14962
Comments
The workaround for now for me was to directly edit
with let trueComponentPath = page.component;
try {
trueComponentPath = slash(truePath(page.component));
} catch (e) {} |
I'm facing this problem too! |
maybe this issue should be handled on true-case-path? There's a issue opened, from a long time ago: |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
not stale |
Published in |
Description
I've tried running
gatsby build
on my shared hosting, but the build failed. More specifically, it seems to fail due to the fact that one of the parent directories (in this case/home
) does not permit listing of files. Thetrue-case-path
library, used by gatsby, throws an error because it is unable toscandir
a component path's parent folder (in this case the component path is/home/myusername/gatsby-site/src/pages/404.js
). I think the build should proceed in this case, and handle this error silently.Steps to reproduce
Expected result
Build should complete successfully. If parent directories do not allow files to be listed, the build should still proceed.
Actual result
Environment
The text was updated successfully, but these errors were encountered: