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

develop and build creating full path to directory as subdirectory #5640

Closed
craveytrain opened this issue May 31, 2018 · 2 comments
Closed

develop and build creating full path to directory as subdirectory #5640

craveytrain opened this issue May 31, 2018 · 2 comments

Comments

@craveytrain
Copy link

craveytrain commented May 31, 2018

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

@craveytrain
Copy link
Author

I think this is related to #5636.

@craveytrain
Copy link
Author

Closing this as a dupe.

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

1 participant