Skip to content
This repository was archived by the owner on Oct 30, 2022. It is now read-only.
This repository was archived by the owner on Oct 30, 2022. It is now read-only.

gatsby-transformer-rehype with custom plugin not working in Gatsby v3.14 #292

@Kerumen

Description

@Kerumen

I have a custom plugin located in my plugins folder. It's named gatsby-rehype-custom-toc.

The relevant part of my gatsby-config.js looks like this:

{
  resolve: 'gatsby-transformer-rehype',
  options: {
    filter: (node) => node.internal.type === 'GhostPost',
    plugins: [
      { resolve: 'gatsby-rehype-ghost-links' },
      { resolve: 'gatsby-rehype-custom-toc' },
    ],
  },
}

In Gatsby v3.13 everything works fine but when I upgraded to v3.14 it breaks with this error:

"gatsby-transformer-rehype" threw an error while running the createSchemaCustomization lifecycle:

Cannot find module 'gatsby-rehype-custom-toc'

Maybe this is related to this part of the changelog?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions