danielmahon / gatsby-remark-relative-images

Convert markdown image src(s) to be relative for gatsby-remark-images.
https://www.npmjs.com/package/gatsby-remark-relative-images
BSD Zero Clause License
79 stars 29 forks source link

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

Open sockdrawermoney opened 3 years ago

sockdrawermoney commented 3 years ago

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

I have:

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 commented 3 years ago

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

sockdrawermoney commented 3 years ago

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