Skip to content

Bug: Build should fail when error is thrown #26

Description

@anitsh

Development completes successfully although there is a failure.

yarn dev

yarn run v1.22.4
$ gatsby clean && gatsby develop
info Deleting .cache, public
info Successfully deleted directories
success open and validate gatsby-configs - 0.082s
success load plugins - 0.993s
success onPreInit - 0.028s
success initialize cache - 0.026s
success copy gatsby files - 0.045s
success onPreBootstrap - 0.031s
success createSchemaCustomization - 0.015s

 ERROR #11321  PLUGIN

"gatsby-plugin-mdx" threw an error while running the onCreateNode lifecycle:

missed comma between flow collection entries at line 7, column 50:
     ... netes', 'devops', 'overview', ''series', 'part_5', 'controllers']
                                         ^/home/anit/Work/codeanit.com/content/kubernetes-controller-part_5.md: missed comma between flow collection entries at line 7, column 50:
     ... netes', 'devops', 'overview', ''series', 'part_5', 'controllers']
                                         ^



  YAMLException: missed comma between flow collection entries at line 7, colu  mn 50:
       ... netes', 'devops', 'overview', ''series', 'part_5', 'controllers']
                                           ^/home/anit/Work/codeanit.com/cont  ent/kubernetes-controller-part_5.md: missed comma between flow collection e  ntries at line 7, column 50:
       ... netes', 'devops', 'overview', ''series', 'part_5', 'controllers']
                                           ^
  
  - loader.js:167 generateError
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:167:10
  
  - loader.js:173 throwError
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:173:9
  
  - loader.js:718 readFlowCollection
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:718:7
  
  - loader.js:1360 composeNode
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:1360:11
  
  - loader.js:1089 readBlockMapping
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:1089:11
  
  - loader.js:1359 composeNode
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:1359:12
  
  - loader.js:1525 readDocument
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:1525:3
  
  - loader.js:1588 loadDocuments
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:1588:5
  
  - loader.js:1614 load
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:1614:19
  
  - loader.js:1637 Object.safeLoad
    [codeanit.com]/[js-yaml]/lib/js-yaml/loader.js:1637:10
  
  - parse.js:12 module.exports
    [codeanit.com]/[gray-matter]/lib/parse.js:12:17
  
  - index.js:109 parseMatter
    [codeanit.com]/[gray-matter]/index.js:109:17
  
  - index.js:50 matter
    [codeanit.com]/[gray-matter]/index.js:50:10
  
  - mdx.js:12 mdxToJsx
    [codeanit.com]/[gatsby-plugin-mdx]/utils/mdx.js:12:29
  
  - create-mdx-node.js:9 module.exports
    [codeanit.com]/[gatsby-plugin-mdx]/utils/create-mdx-node.js:9:18
  
  - on-create-node.js:49 Object.module.exports [as onCreateNode]
    [codeanit.com]/[gatsby-plugin-mdx]/gatsby/on-create-node.js:49:25
  

success source and transform nodes - 3.561s
success building schema - 0.553s
success createPages - 5.953s
success createPagesStatefully - 0.300s
success onPreExtractQueries - 0.005s
success update schema - 0.118s
success extract queries from components - 0.665s
success write out requires - 0.524s
success write out redirect data - 0.046s
success Build manifest and related icons - 0.756s
success onPostBootstrap - 0.989s
⠀
info bootstrap finished - 16.993 s
⠀
success run queries - 0.683s - 12/12 17.56/s
success Generating image thumbnails - 18.085s - 40/40 2.21/s
⠀
You can now view codeanit.com in the browser.
⠀
  http://localhost:8000/
⠀
View GraphiQL, an in-browser IDE, to explore your site's data and schema
⠀
  http://localhost:8000/___graphql
⠀
Note that the development build is not optimized.
To create a production build, use gatsby build
⠀
success Building development bundle - 8.592s


—————————————————————————————————————————————————————————————————————————————
Success                         codeanit.com                         10 pages

Metadata

Metadata

Assignees

Labels

backlogBacklogbugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions