Could not resolve "@cloudflare/pages-plugin-mailchannels"

I'm trying to set up a contact form for a simple Pages site but the instructions on https://blog.cloudflare.com/sending-email-from-workers-with-mailchannels/ just result in a
Could not resolve "@cloudflare/pages-plugin-mailchannels"
error when I make a new push.

npmjs.com seems to indicate that
@cloudflare/pages-plugin-mailchannels
still exists and has over 1,000 weekly downloads, which suggests it hasn't been renamed, but I have no experience with Cloudflare Workers and I find the distinction between using Workers and using Pages Functions hazy and confusing, so I don't know how to go about testing the "must be manually added as a dependency first" hypothesis with Git-based deploy (the docs just talk about Wrangler) and it being located in
functions/_middleware.ts
.
The Cloudflare Blog
MailChannels has created an email sending service specifically for Cloudflare Workers that removes all the friction associated with sending emails.
Was this page helpful?