-
Notifications
You must be signed in to change notification settings - Fork 9
Issues with the gatsby new
command
#2
Comments
Sorry for the trouble you’re having, Siddharth. I removed the required config.toml file from the repo, because it contains my Google Analytics tracking number. I’m still working out the best way to add the file back that doesn’t expose secrets like that. I would imagine this missing file is preventing In the meantime, clone the project and add a file called config.toml to the root directory, with these contents: siteTitle = "Site Title"
blogTitle = "Blog Title"
url = "http://example.com"
linkPrefix = "/example"
email = "name@example.com"
twitter = "@handle"
github = "username"
[js]
head = """
"""
analytics = """
"""
font = """
"""
favicons = '''
'''
[header]
text = '''
<p>Header text</p>
'''
[work]
title = "Work Title"
blurb = "Work blurb"
dir = "work"
[writing]
title = "Writing Title"
blurb = "Writing blurb"
dir = "writing"
[about]
title = "About Title"
text = '''
<p>About text</p>
''' You should then be able to run |
@kylegach Appreciate this a lot! Thanks |
Adding in the
and when I go to |
Sorry about that, Sam. Just tried myself and I’m seeing the same thing. I’m looking into it, but haven’t had any luck yet. @KyleAMathews, have you seen anything like this before? Or could you point me in a likely direction? Thanks! |
That's kind of odd... |
@KyleAMathews — Sorry for the confusion. I mentioned you in here because of Sam’s comment, which I don’t think has anything to do with the (no longer missing 🎉) config.toml file. I’m going to rename the issue to make that more clear. Thanks for looking into it! |
gatsby new
command
👍 |
For reference, the error I see is:
Which would correlate with the output from
|
Hey Sam if you want to push your code somewhere I'll take a look at it.
|
@KyleAMathews I pushed to a temp repo https://github.com/samuelcouch/kylegach_com_clone_temp as far as I can tell, |
Ok so had a chance to look at this and it turns out it's just missing a Apparently not. Sometimes Webpack/Babel can be a bit frustrating :-) |
Thanks, @KyleAMathews! I clearly thought it was optional as well. :) I just did a fresh |
Maybe it was and now it's not :-\ What's weird is there's tests for this. Need to investigate. |
I remembered seeing something that could be related, and sure enough: gatsbyjs/gatsby#279 |
Yeah, that improved things a lot and one of the improvements was a user .babelrc isn't necessary. Need to check why that's not working now (at least for your site). |
I am trying to use your blog as a starter template for mine using
gatsby new
but I guess you have modified the file structure.The text was updated successfully, but these errors were encountered: