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

can't locate the addToMailChimp function on import #97

Open
JBusani opened this issue Feb 4, 2022 · 1 comment
Open

can't locate the addToMailChimp function on import #97

JBusani opened this issue Feb 4, 2022 · 1 comment

Comments

@JBusani
Copy link

JBusani commented Feb 4, 2022

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)

@slimcandy
Copy link

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

So.. skip this error.

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

2 participants