Skip to content

Commit

Permalink
fix broken path dependency
Browse files Browse the repository at this point in the history
Following the guide I had an error with the `path`.

It seems that requiring it at the top of the file solves the issue: `const path = require("path");`

Is there something else I was missing? 

Cheers
  • Loading branch information
hugurp authored Feb 16, 2018
1 parent 18073f6 commit f077b21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/adding-tags-and-categories-to-blog-posts.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ export const pageQuery = graphql`
Now we've got a template. Great! I'll assume you followed the tutorial for [Adding Markdown Pages](/docs/adding-tags-and-categories-to-blog-posts/) and provide a sample `createPages` that generates post pages as well as tag pages. In the site's `gatsby-node.js` file, include `lodash` (`const _ = require('lodash')`) and then make sure your [`createPages`](/docs/node-apis/#createPages) looks something like this:

```js
const path = require("path");

exports.createPages = ({ boundActionCreators, graphql }) => {
const { createPage } = boundActionCreators;

Expand Down

0 comments on commit f077b21

Please sign in to comment.