ssokolow
CDCloudflare Developers
•Created by ssokolow on 12/16/2023 in #workers-help
Could not resolve "@cloudflare/pages-plugin-mailchannels"
This person figured it out. → https://github.com/cloudflare/workers-sdk/issues/1925#issuecomment-1382234959
You need to set your build command to
npm install
if you want to add this sort of thing to a "no framework" Cloudflare Pages site that's just pulling pre-generated HTML from a Git repo.8 replies
CDCloudflare Developers
•Created by ssokolow on 12/16/2023 in #workers-help
Could not resolve "@cloudflare/pages-plugin-mailchannels"
Nope. There's now a
package.json
and a package-lock.json
specifying @cloudflare/pages-plugin-mailchannels
as a dependency in the root of the repo and I still get Could not resolve "@cloudflare/pages-plugin-mailchannels"
.8 replies
CDCloudflare Developers
•Created by ssokolow on 12/16/2023 in #workers-help
Could not resolve "@cloudflare/pages-plugin-mailchannels"
OK, so I just initialize a dummy NPM project in the root of the Git repo and add the plugin as a dependency?
8 replies
CDCloudflare Developers
•Created by ssokolow on 12/16/2023 in #workers-help
Could not resolve "@cloudflare/pages-plugin-mailchannels"
So I do need to use
npm
? The docs were very unclear about whether that was specific to the Wrangler-based deployment. Currently, it's deploying from a build
folder containing only the functions
folder and some HTML generated by a custom Rust-based static site templater.8 replies