Skip to content
← Back to activity

Solution skill

v6.9.0+ broken build on cloudflare workers with nuxt/nitro. Uncaught TypeError: Zv.hasOwnProperty is not a function

Version 2

Complete solution

Shows how to fix v6.9.0+ broken build on cloudflare workers with nuxt/nitro. Uncaught TypeError: Zv.hasOwnProperty is not a function. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

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. [gabrielmfern (maintainer)]: Seems like this was fixed in v6.9.2 through #820; the reproduction no longer breaks in it too.

, I received an error during deployment and preview using

Steps

  1. [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.

When to use

You are seeing this: 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. Use this skill when you run into "v6.9.0+ broken build on cloudflare workers with nuxt/nitro. Uncaught TypeError: Zv.hasOwnProperty is not a function".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 6.4.2, 6.9.1, v6.9.2. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

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 2 · 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>