8000 [v4] 'A comment' warning during build with Vite · Issue #4437 · colinhacks/zod · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[v4] 'A comment' warning during build with Vite #4437

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&r 8000 dquo;, 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
RIPPERO opened this issue May 20, 2025 · 1 comment
Open

[v4] 'A comment' warning during build with Vite #4437

RIPPERO opened this issue May 20, 2025 · 1 comment

Comments

@RIPPERO
Copy link
RIPPERO commented May 20, 2025

During vite run build I have following warnings

Image

In v3 there was no warnings like this.

@hastebrot
Copy link

it seems these out-commented lines need to be removed.

    //  const parse: <T extends core.$ZodType>(
    //   schema: T,
    //   value: unknown,
    //   _ctx?: core.ParseContext<core.$ZodIssue>
    // ) => core.output<T> = /* @__PURE__ */ core._parse(ZodError, parse) as any;
    //  const safeParse: <T extends core.$ZodType>(
    //   schema: T,
    //   value: unknown,
    //   _ctx?: core.ParseContext<core.$ZodIssue>
    // ) => ZodSafeParseResult<core.output<T>> = /* @__PURE__ */ core._safeParse(ZodError) as any;
    //  const parseAsync: <T extends core.$ZodType>(
    //   schema: T,
    //   value: unknown,
    //   _ctx?: core.ParseContext<core.$ZodIssue>
    // ) => Promise<core.output<T>> = /* @__PURE__ */ core._parseAsync(ZodError) as any;
    //  const safeParseAsync: <T extends core.$ZodType>(
    //   schema: T,
    //   value: unknown,
    //   _ctx?: core.ParseContext<core.$ZodIssue>
    // ) => Promise<ZodSafeParseResult<core.output<T>>> = /* @__PURE__ */ core._safeParseAsync(ZodError) as any;
    // parsing
    inst.parse = (data, params) => parse.parse(inst, data, params, { callee: inst.parse });
    inst.safeParse = (data, params) => parse.safeParse(inst, data, params);
    inst.parseAsync = async (data, params) => parse.parseAsync(inst, data, params, { callee: inst.parseAsync });
    inst.safeParseAsync = async (data, params) => parse.safeParseAsync(inst, data, params);

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