Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatsby-remark-custom-blocks gatsby looking for plugin's package.json in dist dir instead of root #3317

Conversation

AlahmadiQ8
Copy link

#3297

oops, my bad 😞

https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/load-plugins.js#L82

was throwing

Error: ENOENT: no such file or directory, open '/Users/mohammadmohammad/Dev/my-site-2/node_modules/gatsby-remark-custom-blocks/dist/package.json'

turned out package entry point for plugins must be at the root.

updated package.json to change the entry point to index.js instead of dist/index.js.

@gatsbybot
Copy link
Collaborator

Deploy preview ready!

Built with commit f54a849

https://deploy-preview-3317--gatsbygram.netlify.com

@ghost ghost assigned KyleAMathews Dec 23, 2017
@ghost ghost added the review label Dec 23, 2017
@KyleAMathews
Copy link
Contributor

Deploy preview failed.

Built with commit f17ae62

https://app.netlify.com/sites/using-glamor/deploys/5a3db784a1147756940fd3c6

@KyleAMathews
Copy link
Contributor

No worries :-)

For future reference, if you run from the root of the site npm run plop, we have a package generator that makes it easy to spit out new packages

"plop": "plop",

@KyleAMathews KyleAMathews merged commit 6da1d20 into gatsbyjs:master Dec 23, 2017
@ghost ghost removed the review label Dec 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants