Skip to content
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

Build crashes for directories with only images #39

Closed
fson opened this issue Sep 22, 2015 · 2 comments
Closed

Build crashes for directories with only images #39

fson opened this issue Sep 22, 2015 · 2 comments

Comments

@fson
Copy link
Contributor

fson commented Sep 22, 2015

If there is a folder in pages that includes only images (no jsx/md/html pages), the build crashes with an error Cannot read property 'path' of undefined:

> mkdir pages/images
> touch pages/images/foo.jpg
> gatsby build
Generating static html pages
Compiling production bundle.js
Copying assets
/Users/ville/Projects/gatsby/lib/utils/post-build.coffee:37
        newPath = parsePath(page.path).dirname + parsed.basename;
                                ^

TypeError: Cannot read property 'path' of undefined
  at copy (/Users/ville/Projects/gatsby/lib/utils/post-build.coffee:31:16)
  at /Users/ville/Projects/gatsby/node_modules/async/lib/async.js:358:13
  at /Users/ville/Projects/gatsby/node_modules/async/lib/async.js:239:13
@fson
Copy link
Contributor Author

fson commented Sep 22, 2015

Thanks @KyleAMathews!

@KyleAMathews
Copy link
Contributor

NP :) Published a 0.4.1 release to NPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants