gatsby-plugin-mailchimp icon indicating copy to clipboard operation
gatsby-plugin-mailchimp copied to clipboard

can't locate the addToMailChimp function on import

Open JBusani opened this issue 3 years ago • 1 comments

I'm importing as in the instructions:

import addToMailChimp from 'gatsby-plugin-mailchimp'

but this error is being highlighted:

Could not find a declaration file for module 'gatsby-plugin-mailchimp'. 'C:/Users/jakeb/CompoundingSense-Website/node_modules/gatsby-plugin-mailchimp/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/gatsby-plugin-mailchimp if it exists or add a new declaration (.d.ts) file containing declare module 'gatsby-plugin-mailchimp';ts(7016)

JBusani avatar Feb 04 '22 11:02 JBusani

It seems like you have typescript setup in your project. But this library doesn't have types.

So.. skip this error.

slimcandy avatar Jun 09 '23 12:06 slimcandy