[GH-ISSUE #4181] Bug: createGenerator not exported from fumadocs-typescript #18484

Closed
opened 2026-04-15 16:57:15 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ShobhitPatra on GitHub (Aug 23, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/4181

Description

When running the docs with pnpm run dev, the build fails because fumadocs-typescript does not export createGenerator.

It fails with following error :

Image

Steps to Reproduce

  1. Clone the repository
  2. Install dependencies with pnpm install
  3. Run the docs with pnpm run docs
  4. Observe the error

Expected Behavior

The docs should start successfully without throwing any errors.

Actual Behavior

The docs fail to run and display the above error.

Environment

  • OS: [Fedora Linux]
  • Node.js version: [v20.19.1]
  • Package manager: pnpm [10.11.0]
Originally created by @ShobhitPatra on GitHub (Aug 23, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/4181 ### Description When running the docs with pnpm run dev, the build fails because fumadocs-typescript does not export createGenerator. It fails with following error : <img width="1896" height="476" alt="Image" src="https://github.com/user-attachments/assets/62fa0f5d-4bf4-4e87-bc3d-398e1c6f507e" /> ### Steps to Reproduce 1. Clone the repository 2. Install dependencies with `pnpm install` 3. Run the docs with `pnpm run docs` 4. Observe the error ### Expected Behavior The docs should start successfully without throwing any errors. ### Actual Behavior The docs fail to run and display the above error. ### Environment - **OS:** [Fedora Linux] - **Node.js version:** [v20.19.1] - **Package manager:** pnpm [10.11.0]
GiteaMirror added the lockedbug labels 2026-04-15 16:57:15 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 23, 2025):

Hi @ShobhitPatra! I'm Dosu and I’m helping the better-auth team.

The build fails because the latest version of fumadocs-typescript (v4+) no longer exports createGenerator. Recent PRs show that the documentation generation API changed, and usage of createGenerator is now obsolete. To fix the error, update your docs configuration (such as docs/source.config.ts) to remove any import or usage of createGenerator from fumadocs-typescript. Instead, use the new API—typically, you should import and use AutoTypeTable directly from fumadocs-typescript/ui for type tables in your docs. See PR #4144 and PR #4154 for examples of the new usage pattern.

In short:

  • Remove createGenerator imports/usages.
  • Use AutoTypeTable from fumadocs-typescript/ui as needed.

This should resolve the build error and get your docs running with the latest package versions.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

<!-- gh-comment-id:3217242846 --> @dosubot[bot] commented on GitHub (Aug 23, 2025): <!-- Greeting --> Hi @ShobhitPatra! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the better-auth team. <!-- Answer --> The build fails because the latest version of `fumadocs-typescript` (v4+) no longer exports `createGenerator`. Recent PRs show that the documentation generation API changed, and usage of `createGenerator` is now obsolete. To fix the error, update your docs configuration (such as `docs/source.config.ts`) to remove any import or usage of `createGenerator` from `fumadocs-typescript`. Instead, use the new API—typically, you should import and use `AutoTypeTable` directly from `fumadocs-typescript/ui` for type tables in your docs. See [PR #4144](https://github.com/better-auth/better-auth/pull/4144) and [PR #4154](https://github.com/better-auth/better-auth/pull/4154) for examples of the new usage pattern. In short: - Remove `createGenerator` imports/usages. - Use `AutoTypeTable` from `fumadocs-typescript/ui` as needed. This should resolve the build error and get your docs running with the latest package versions. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/153aa8b4-3eec-4ef8-9067-dd865eb0d30a?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/153aa8b4-3eec-4ef8-9067-dd865eb0d30a?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/153aa8b4-3eec-4ef8-9067-dd865eb0d30a?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/153aa8b4-3eec-4ef8-9067-dd865eb0d30a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/153aa8b4-3eec-4ef8-9067-dd865eb0d30a?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/153aa8b4-3eec-4ef8-9067-dd865eb0d30a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/153aa8b4-3eec-4ef8-9067-dd865eb0d30a?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/4181)
Author
Owner

@ShobhitPatra commented on GitHub (Aug 24, 2025):

For anyone else hitting this issue: it's likely a cache corruption problem, not a version issue.

<!-- gh-comment-id:3217666610 --> @ShobhitPatra commented on GitHub (Aug 24, 2025): For anyone else hitting this issue: it's likely a cache corruption problem, not a version issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#18484