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

Error: Unable to find plugin "gatsby-remark-relative-images" even after installing multiple versions #48

Open
sockdrawermoney opened this issue Sep 27, 2020 · 2 comments

Comments

@sockdrawermoney
Copy link

sockdrawermoney commented Sep 27, 2020

I've been trying to install and use this plugin, but regardless of what I do, the module reports as missing.

I have:

  • verified it's in node_modules directory
  • tried installing different versions of the modules
  • tried deleted node_modules and reinstalled everything

This is what the start of the modules config in my gatsby-config.js looks like:

  plugins: [
    {
      resolve: "gatsby-source-filesystem",
      options: {
        path: `${__dirname}/content/uploads`,
        name: "assets",
      },
    },
    {
      resolve: "gatsby-source-filesystem",
      options: {
        path: `${__dirname}/content/blog`,
        name: "posts",
      },
    },
    `gatsby-plugin-sharp`,
    `gatsby-plugin-netlify-cms`,
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          `gatsby-remark-relative-images`,
          `gatsby-remark-copy-linked-files`,
          {
            resolve: `gatsby-remark-images`,
            options: {
              maxWidth: 605,
            },
          },
          "gatsby-remark-prismjs",
          `gatsby-remark-autolink-headers`,
        ],
      },
    },

Any ideas?

@sockdrawermoney
Copy link
Author

This issue exists for me in node 14 and node 12 but not node 10.

@sockdrawermoney
Copy link
Author

lol scratch that. I was testing things out in various environments and ran npm i in the wrong repo. 😂 Sooo never mind. Problem exists in node 10, too.

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

No branches or pull requests

1 participant