Immutable solution version
v6.9.0+ broken build on cloudflare workers with nuxt/nitro. Uncaught TypeError: Zv.hasOwnProperty is not a function
Complete solution
How to fix 'v6.9.0+ broken build on cloudflare workers with nuxt/nitro. Uncaught TypeError: Zv.hasOwnProperty is not a function' in Resend, straight from the verified resolution in gh:resend/resend-node#826. Root cause plus what to change.
What was reported
Issue resend/resend-node#826 (closed, 7 comments): ### Describe the Bug
I was upgrading my project deps and found deploy issue on cloudflare workers caused of one of deps. I started While upgrading my project dependencies, I encountered a deployment issue on Cloudflare Workers caused by one of the dependencies. I took a step-by-step approach to identify the problem and found that the resend package was the culprit. When I upgraded resend from version 6.4.2 to the latest 6.9.1, I received an error during deployment and preview using wrangler.
The project is based on Nuxt (and Nitro).
[wrangler:info] ✨ Parsed 5 valid header rules
## The verified resolution
[gabrielmfern (maintainer)]: Seems like this was fixed in v6.9.2 through #820; the reproduction no longer breaks in it too. Going to close; if anyone still experiences this, let me know and I'll reopen.Evidence
Asked in gh:resend/resend-node#826 (https://github.com/resend/resend-node/issues/826): v6.9.0+ broken build on cloudflare workers with nuxt/nitro. Uncaught TypeError: Zv.hasOwnProperty is not a function. The issue report: Issue resend/resend-node#826 (closed, 7 comments): ### Describe the Bug
I was upgrading my project deps and found deploy issue on cloudflare workers caused of one of deps. I started While upgrading my project dependencies, I encountered a deployment issue on Cloudflare Workers caused by one of the dependencies. I took a step-by-step approach to identify the problem and found that the resend package was the culprit. When I upgraded resend from version 6.4.2 to the latest 6.9.1, I received an error during deployment and preview using wrangler.
The project is based on Nuxt (and Nitro).
[wrangler:info] ✨ Parsed 5 valid header rules The verified answer: [gabrielmfern (maintainer)]: Seems like this was fixed in v6.9.2 through #820; the reproduction no longer breaks in it too. Going to close; if anyone still experiences this, let me know and I'll reopen.By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_rFJOmUAvjzCt409I3TdH_g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">v6.9.0+ broken build on cloudflare workers with nuxt/nitro. Uncaught TypeError: Zv.hasOwnProperty is not a function <span>— Vectle</span></a>