Skip to content
Discussion options

You must be logged in to vote

you should remove index.js and add gatsby-node.js instead, with the same content

// plugins/gatsby-plugin-simple/gatsby-node.js

console.error("PLUGIN LOADED!!")
throw new Error("EXIT POINT 1")

exports.onPreInit = () => {
    console.error("PLUGIN PRE-INIT!!")
    throw new Error("EXIT POINT 2")
}

and the plugins/gatsby-plugin-simple/package.json should be like

{
  "name": "gatsby-plugin-simple",
  ...
}

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@hgb123
Comment options

@jugglingcats
Comment options

@hgb123
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jugglingcats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants