Skip to content

Commit

Permalink
Add gatsby-transformer-remark to npm install in `gatsby-remark-pr…
Browse files Browse the repository at this point in the history
…ismjs` README

This may be totally intuitive to some, but if you add `gatsby-remark-prismjs` as shown above without having added `gatsby-transformer-remark`, you get a build failure:

```
prichey@BE7700 ~/g/prichey-gatsby (master)> yarn deploy
yarn run v1.2.1
$ gatsby build --prefix-paths && gh-pages -d public
success delete html files from previous builds — 0.046 s
success open and validate gatsby-config.js — 0.007 s
error Unable to find plugin "gatsby-transformer-remark"


  Error: Unable to find plugin "gatsby-transformer-remark"

  - load-plugins.js:96 resolvePlugin
    [prichey-gatsby]/[gatsby]/dist/bootstrap/load-plugins.js:96:11

  - load-plugins.js:147 processPlugin
    [prichey-gatsby]/[gatsby]/dist/bootstrap/load-plugins.js:147:27

  - load-plugins.js:168
    [prichey-gatsby]/[gatsby]/dist/bootstrap/load-plugins.js:168:28

  - Array.forEach

  - load-plugins.js:167 _callee$
    [prichey-gatsby]/[gatsby]/dist/bootstrap/load-plugins.js:167:28

  - index.js:122 _callee$
    [prichey-gatsby]/[gatsby]/dist/bootstrap/index.js:122:20


error Command failed with exit code 1.
```

Small change, but it would save beginners from running into the same error I just hit.
  • Loading branch information
prichey authored Oct 29, 2017
1 parent 1adad2d commit da32669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-remark-prismjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Adds syntax highlighting to code blocks in markdown files using

## Install

`npm install --save gatsby-remark-prismjs`
`npm install --save gatsby-transformer-remark gatsby-remark-prismjs`

## How to use

Expand Down

0 comments on commit da32669

Please sign in to comment.