-
Notifications
You must be signed in to change notification settings - Fork 31
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
Strange syntax error (related to jsonp) #28
Comments
is this still an issue? otherwise, I will close. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So I'm getting a very strange syntax error whenever I try to use the
addToMailchimp
function in my code. Same error comes up when I tried usejsonp
to submit the form so these might be related.Here's the error I get in the browser's console:
Uncaught SyntaxError: Unexpected token .
As you can see, it's very vague, so it'll probably help if I share my component's code. I'm using Formik as a dependency so that might also be part of the problem although I can't see why (my solution worked on older versions of the plugin).
Here's the relevant dependencies I have:
Here's how my form component looks like:
I'm not really sure what the error means since it's so vague. inspecting the error in console,
common.js
references this function as the cause:Again, not much info to go on. Maybe it's an issue with my versions or maybe it's something to do with Formik. Also I set my node config to this in
gatsby-node
to remove the missingfs
dependency issue that I was getting with previous attempts to make this plugin work.This worked fine when I was on the older version (
gatsby-plugin-mailchimp": "https://github.com/benjaminhoffman/gatsby-plugin-mailchimp.git#gatsby-v2"
) so it might be something to do with the latest version update.Any help would be appreciated, thanks!
The text was updated successfully, but these errors were encountered: