Skip to content

Align missing-schema errors: no env.ts starter snippets (dev + v1) #1471

Description

@yamcodes

This was generated by AI during triage.

Summary

Align missing-schema error content across hosts and branches: errors must not embed example / starter env.ts code blocks. Prefer short, actionable text (expected paths, schemaPath, optionally arkenv init).

Related but separate: missing-schema severity (everyone throws) is #1470.

Policy

  • No inline starter modules in thrown errors (no fenced src/env.ts examples).
  • Applies to Bun, Vite, Next, and Nuxt wherever a missing-schema error is produced.
  • Message wording may differ per host; no starter snippets must not.

Current behavior

dev

  • Bun: missing-schema error includes an arktype Example \src/env.ts`` code block
  • Next / Nuxt / Vite: no starter snippets in errors (Vite has no file-discovery miss path)

v1

Desired behavior

  • dev: remove Bun starter snippet; error stays a throw with paths / how to configure (severity unchanged — see Align missing-schema severity: all hosts throw (dev → v1) #1470)
  • v1: confirm no host reintroduces starters; fix if any remain
  • Optional consistent hint such as arkenv init is fine if it fits each package’s CLI story; not required to be identical wording

Acceptance criteria

On dev

  • Bun missing-schema error contains no example env.ts / code fence starter
  • Tests updated if they asserted on starter text
  • Changeset(s) for affected packages

On v1

  • No host embeds starter snippets in missing-schema errors (regression check / fix if needed)
  • Changeset only if a code change is required

Out of scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    @arkenv/bun-pluginIssues or Pull Requests involving the Bun plugin for ArkEnv@arkenv/nextjsIssues or Pull Requests involving the Next.js integration for ArkEnv@arkenv/nuxtIssues or Pull Requests involving the Nuxt integration for ArkEnv@arkenv/vite-pluginIssues or Pull Requests involving the Vite plugin for ArkEnvenhancementNew feature or improvementready for agentFully specified, ready for immediate implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions