@jiangcaiyang the error you posted points to client-side code. The code you posted is pretty clearly server-side.
subscribe into newsletter widget
-
Re: [nodebb-plugin-newsletter] Send e-mail newsletters to your users.
Is there any widget, so I could let users to subscribe into newsletter ?
-
There's the mailchimp plugin, but I am not sure how out-of-date that one is.