8000 (!) "this" has been rewritten to "undefined" · Issue #4442 · colinhacks/zod · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

(!) "this" has been rewritten to "undefined" #4442

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

Open
jelmerwouters-topicus opened this issue May 20, 2025 · 2 comments
Open

(!) "this" has been rewritten to "undefined" #4442

jelmerwouters-topicus opened this issue May 20, 2025 · 2 comments

Comments

@jelmerwouters-topicus
Copy link

When updating from v3.24.4 to v3.25.7 I'm now getting this error:

https://rollupjs.org/troubleshooting/#error-this-is-undefined
node_modules/zod/dist/esm/v3/types.js
1: var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
                                 ^
2:     if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3:     if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot re...
@colinhacks
Copy link
Owner

That code was injected from your bundler. I would need to know how you're bundling your code to debug (a rollup config would be a good start, or better yet a repository with a reproduction)

@jelmerwouters-topicus
Copy link
Author
jelmerwouters-topicus commented May 21, 2025

Perhaps I'm not truly understanding renovate, but I see the code in the diff @ https://app.renovatebot.com/package-diff?name=zod&from=3.24.4&to=3.25.1#d2h-034999 :)

You can checkout my repo @ https://github.com/benjamin-dcs/gauge-card-pro

Thanks for helping out!

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

No branches or pull requests

2 participants
0