Add KB article: TypeScript build fails for CommonJS with verbatimModuleSyntax - #3158
Conversation
…leSyntax Customers following the CommonJS setup in the TS SDK integration guide hit TS1295/TS1287 if their tsconfig sets verbatimModuleSyntax: true. Reproduced against weave 0.16.3 / TypeScript 6.0.3; fix is to set it back to false. Ref DOCS-2554.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
Updated 2026-09-01 20:56:43 UTC for deployment · 2c99dd9. |
Knowledgebase navigation update
Generator warnings
|
HiveMind Sessions2 sessions · 25m · $2.39
View all sessions in HiveMind → Run |
Readability impactWord-weighted Flesch-Kincaid grade change across 1 changed page: +0.0 (unchanged). Lower Flesch-Kincaid grade and higher reading ease both mean easier to read. This check is informational and never blocks a PR. Human readability
AI agent comprehensionRated 0-3 (higher is easier for an agent to parse and act on).
Curated-docs baseline median FK grade by type: conceptual 10.5, procedural 8.8, reference 9.4. |
🔗 Link Checker Results✅ All links are valid! No broken links were detected. Preview: https://wb-21fd5541-docs-weave-ts-commonjs-verbatim-kb.mintlify.site |
Adds keywords: ["TypeScript"] so the nav generator creates a category for it; no existing tag (System Info, weave.op, etc.) fit a build/tsconfig issue.
|
|
||
| The setting defaults to `false`, which the TypeScript SDK integration guide assumes. | ||
|
|
||
| Set it back to `false` alongside your CommonJS `module` setting: |
There was a problem hiding this comment.
| Set it back to `false` alongside your CommonJS `module` setting: | |
| Set the `verbatimModuleSyntax` field to `false`, and ensure that the project's `module` setting to `CommonJS`: |
Summary
TS1295/TS1287) when following the CommonJS setup in the TypeScript SDK integration guide withverbatimModuleSyntax: truein theirtsconfig.json.weave@0.16.3/typescript@6.0.3: settingverbatimModuleSyntax: false(alongsidemodule: CommonJS) resolves it.Test plan
/weave/guides/integrations/jsresolves