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

"cloudflare:email", and "cloudflare:queue" hook isn't have. #2587

Closed
dalbodeule opened this issue Jul 5, 2024 · 4 comments
Closed

"cloudflare:email", and "cloudflare:queue" hook isn't have. #2587

dalbodeule opened this issue Jul 5, 2024 · 4 comments

Comments

@dalbodeule
Copy link
Contributor

Environment

Node v22.2.0

Reproduction

image

Describe the bug

Inner defineNitroPlugin, nitro.hook.hooks (NitroRuntimeHooks) don't have "cloudflare:email", "cloudflare:queue" hook keys.

After this chore, is issue created.

Additional context

This issue re-issued on this issue

Logs

No response

@dalbodeule
Copy link
Contributor Author

image

Just in case, I went through the nitro install process and performed the same task in the nitro-app directory. However, even if I try to import cloudflare-module, the result is the same.

@zou-yu
Copy link

zou-yu commented Jul 19, 2024

It works fine for me, check if you are using nightly build nuxt or nitro likes: "nuxt": "npm:nuxt-nightly@latest".
image

@dalbodeule
Copy link
Contributor Author

image

I didn't even think about nightly builds.
After using the Nigitly build, I was able to use the "cloudflare:email" and "cloudflare:queue" hooks. thank you for telling me.

@dalbodeule
Copy link
Contributor Author

What was originally supposed to be MessageBatch, I looked it up today and found that it was written as CloudflareEmailContext.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants