-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Description
Description
When running gatsby develop or gatsby build, it builds out the entire path to the the directory I'm in as subdirectories. E.g.:
While in /Users/mcravey/Projects/craveytrain.com, running gatsby develop will create a directories /Users/mcravey/Projects/craveytrain.com resulting in a path of /Users/mcravey/Projects/craveytrain.com/Users/mcravey/Projects/craveytrain.com.
This also results the dev server not able to find the files.
Steps to reproduce
just running gatsby develop or gatsby build. This is true if I run gatsby develop using the global cli, or if I run npx gatsby develop (or use npm scripts).
Expected result
Weird subdirectory shouldn't exist and server should work as expected.
Actual result
While in /Users/mcravey/Projects/craveytrain.com, running gatsby develop will create a directories /Users/mcravey/Projects/craveytrain.com resulting in a path of /Users/mcravey/Projects/craveytrain.com/Users/mcravey/Projects/craveytrain.com.
This also results the dev server not able to find the files.
Environment
- Gatsby version (
npm list gatsby): 1.9.265 - gatsby-cli version (
gatsby --version): 1.1.56 - Node.js version: v10.2.1
- Operating System: MacOS 10.13.4
I have created a branch where I can reproduce the issue as this does not appear to be an issue in my master branch:
https://github.com/craveytrain/craveytrain.com/compare/upgrade-deps
Incidentally,
File contents (if changed)
gatsby-config.js: N/A
package.json: N/A
gatsby-node.js: N/A
gatsby-browser.js: N/A
gatsby-ssr.js: N/A