YurkaninRyan / tkplaceholder-remark-social-cards

Plugin for my Gatsby blog that autogenerates social cards!
4 stars 0 forks source link

Problem using the plugin #6

Open felpsio opened 4 years ago

felpsio commented 4 years ago

Every time I try to use the plugin I get the following error:

Error in "/node_modules/gatsby-plugin-social-cards/gatsby-node.js": Cannot find module './build'
Require stack:
- /node_modules/gatsby-plugin-social-cards/gatsby-node.js
- /node_modules/gatsby/dist/bootstrap/resolve-module-exports.js
- /node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
- /node_modules/gatsby/dist/bootstrap/load-plugins/load.js
- /node_modules/gatsby/dist/bootstrap/load-plugins/index.js
- /node_modules/gatsby/dist/bootstrap/index.js
- /node_modules/gatsby/dist/commands/build.js
- /usr/local/lib/node_modules/gatsby-cli/lib/create-cli.js
- /usr/local/lib/node_modules/gatsby-cli/lib/index.js

  Error: Cannot find module './build'
  Require stack:
  - /node_modules/gatsby-plugin-social-cards/gatsby-node.js
  - /node_modules/gatsby/dist/bootstrap/resolve-module-exports.js
  - /node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
  - /node_modules/gatsby/dist/bootstrap/load-plugins/load.js
  - /node_modules/gatsby/dist/bootstrap/load-plugins/index.js
  - /node_modules/gatsby/dist/bootstrap/index.js
  - /node_modules/gatsby/dist/commands/build.js
  - /usr/local/lib/node_modules/gatsby-cli/lib/create-cli.js
  - /usr/local/lib/node_modules/gatsby-cli/lib/index.js

  - loader.js:794 Function.Module._resolveFilename
    internal/modules/cjs/loader.js:794:15

  - loader.js:687 Function.Module._load
    internal/modules/cjs/loader.js:687:27

  - loader.js:849 Module.require
    internal/modules/cjs/loader.js:849:19

  - v8-compile-cache.js:159 require
    [project-name]/[v8-compile-cache]/v8-compile-cache.js:159:20

  - gatsby-node.js:1 Object.<anonymous>
    [project-name]/[gatsby-plugin-social-cards]/gatsby-node.js:1:84

  - v8-compile-cache.js:178 Module._compile
    [project-name]/[v8-compile-cache]/v8-compile-cache.js:178:30

  - loader.js:973 Object.Module._extensions..js
    internal/modules/cjs/loader.js:973:10

  - loader.js:812 Module.load
    internal/modules/cjs/loader.js:812:32

  - loader.js:724 Function.Module._load
    internal/modules/cjs/loader.js:724:14

  - loader.js:849 Module.require
    internal/modules/cjs/loader.js:849:19

  - v8-compile-cache.js:159 require
    [project-name]/[v8-compile-cache]/v8-compile-cache.js:159:20

  - resolve-module-exports.js:126 module.exports
    [project-name]/[gatsby]/dist/bootstrap/resolve-module-exports.js:126:26

  - validate.js:120 
    [project-name]/[gatsby]/dist/bootstrap/load-plugins/validate.js:120:31

  - Array.forEach

  - validate.js:113 collatePluginAPIs
    [project-name]/[gatsby]/dist/bootstrap/load-plugins/validate.js:113:20

  - index.js:62 module.exports
    [project-name]/[gatsby]/dist/bootstrap/load-plugins/index.js:62:13

not finished load plugins - 1.697s

 ERROR 

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
    in StoreStateProvider
    in App

I'm using "gatsby": "^2.13.48",. Is it a plugin problem? I would love some help on this :)

nickytonline commented 4 years ago

First, thanks for creating the plugin, @YurkaninRyan. 👏

I've just encountered this issue as well. I was trying this out as an upgrade from the remark social cards.

  Error: Cannot find module './build'
  Require stack:
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby-plugin-social-cards/gatsby-node.js
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby/dist/bootstrap/resolve-module-exports.js
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby/dist/bootstrap/load-plugins/load.js
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby/dist/bootstrap/load-plugins/index.js
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby/dist/bootstrap/index.js
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby/dist/commands/develop.js
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby/node_modules/gatsby-cli/lib/create-cli.js
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby/node_modules/gatsby-cli/lib/index.js
  - /Users/nickytonline/dev/www.iamdeveloper.com/node_modules/gatsby/dist/bin/gatsby.js

I'm currently running Gatsby 2.18.6 and here is the list of plugins I have installed.

    "gatsby-image": "2.2.34",
    "gatsby-plugin-feed": "2.3.22",
    "gatsby-plugin-google-analytics": "2.1.29",
    "gatsby-plugin-manifest": "2.2.31",
    "gatsby-plugin-netlify": "2.1.27",
    "gatsby-plugin-netlify-cms": "4.1.30",
    "gatsby-plugin-offline": "3.0.25",
    "gatsby-plugin-purgecss": "4.0.1",
    "gatsby-plugin-react-helmet": "3.1.16",
    "gatsby-plugin-sass": "2.1.24",
    "gatsby-plugin-sharp": "2.3.4",
    "gatsby-plugin-sitemap": "2.2.22",
    "gatsby-plugin-social-cards": "0.5.7",
    "gatsby-plugin-web-font-loader": "1.0.4",
    "gatsby-remark-copy-linked-files": "2.1.31",
    "gatsby-remark-images": "3.1.35",
    "gatsby-remark-prismjs": "3.3.25",
    "gatsby-remark-relative-images": "0.2.3",
    "gatsby-source-filesystem": "2.1.40",
    "gatsby-transformer-remark": "2.6.38",
    "gatsby-transformer-sharp": "2.3.6",

I only tried this out a few minutes ago, but happy to look into this or provide more info for you.

aspittel commented 4 years ago

Same here!