-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Subplugins loading doesn't respect main
field in package.json
#33677
Comments
I'm having trouble with the same problem. Has it been changed to GatsbyJS v4 to ignore the If this is a specification, plugin support is required, so please describe it in Migrating from v3 to v4. If it is a bug, please fix it. |
I've been trying to upgrade a site to Gatsby v4 and discovered the issue also affects gatsby-remark-relative-images. Plugin uses |
Just confirming that I reproduced this bug on my site as well. |
Please update to |
@LekoArts possible this is hitting |
@LekoArts I still see this error with the following versions: I don't use |
I'm currently having issues in Gatsby 4 with my gatsby-remark-acronyms plugin that I never experienced before!
From what I can tell, the initial plugin validation is failing because my plugin entry point is under a "dist" folder instead of the root of the plugin (mind you, there is a "main" entry pointing on the plugin package.json, pointing to this file), but this works fine in Gatsby 2 and 3.
Repro is quite easy, I just created a new Gatsby site with
gatsby new
, only specification I added was to have markdown with MDX, and then runnpm add gatsby-remark-acronyms
.On the gatsby-config.js I replaced this:
with this:
When I run
npm run build
, this is what I got:The error makes sense, as there is no "gatsby-remark-acronyms/index", but I would expect it to respect the "main" entry and thus use "gatsby-remark-acronyms/dist/index".
Is this expected behavior or some kind of bug introduced in Gatsby 4?
Originally posted by @pedrolamas in #32860 (comment)
The text was updated successfully, but these errors were encountered: