Skip to content

Commit 9ec69b6

Browse files
committed
Fix React import issue (again)
1 parent 4aa4dbf commit 9ec69b6

File tree

9 files changed

+14
-6
lines changed

9 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [0.6.1] - 2026-01-02
10+
## [0.6.2] - 2026-01-02
1111

1212
### Fixed
1313

14-
- "React is not defined" error on global npm installs. The published package didn't include tsconfig.json, so Bun couldn't read jsxImportSource and the JSX pragma was ignored. Added explicit React import as a bulletproof fix.
14+
- "React is not defined" error on global npm installs. The published package doesn't include tsconfig.json, so Bun can't read jsxImportSource and falls back to classic JSX transform. Added explicit React imports to all TSX files.
1515

1616
## [0.6.0] - 2026-01-02
1717

@@ -87,8 +87,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8787
- Standalone binary builds for macOS (arm64 and x64)
8888
- npm package distribution
8989

90-
[Unreleased]: https://github.com/AgentWorkforce/limit/compare/v0.6.1...HEAD
91-
[0.6.1]: https://github.com/AgentWorkforce/limit/compare/v0.6.0...v0.6.1
90+
[Unreleased]: https://github.com/AgentWorkforce/limit/compare/v0.6.2...HEAD
91+
[0.6.2]: https://github.com/AgentWorkforce/limit/compare/v0.6.0...v0.6.2
9292
[0.6.0]: https://github.com/AgentWorkforce/limit/compare/v0.5.1...v0.6.0
9393
[0.5.1]: https://github.com/AgentWorkforce/limit/compare/v0.5.0...v0.5.1
9494
[0.5.0]: https://github.com/AgentWorkforce/limit/compare/v0.4.1...v0.5.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agent-limit",
3-
"version": "0.6.1",
3+
"version": "0.6.2",
44
"description": "Terminal dashboard to monitor Claude Code, Codex, and other agent usage limits",
55
"type": "module",
66
"main": "src/index.tsx",

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useEffect, useState, useCallback } from "react";
1+
import React, { useEffect, useState, useCallback } from "react";
22
import { useKeyboard } from "@opentui/react";
33
import { Header, Footer, Dashboard } from "./components";
44
import { fetchAllProviders, type ProviderStatus } from "./providers";

src/components/Dashboard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from "react";
12
import type { ProviderStatus } from "../providers/types";
23
import { ProviderCard } from "./ProviderCard";
34

src/components/Footer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import React from "react";
2+
13
export function Footer() {
24
return (
35
<box

src/components/Header.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import React from "react";
2+
13
interface HeaderProps {
24
lastRefresh: Date | null;
35
isLoading: boolean;

src/components/ProgressBar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from "react";
12
import { getUsageColor } from "../utils/colors";
23

34
interface ProgressBarProps {

src/components/ProviderCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from "react";
12
import type { ProviderStatus } from "../providers/types";
23
import { PROVIDER_COLORS, getStatusColor } from "../utils/colors";
34
import { ProgressBar } from "./ProgressBar";

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from "react";
12
import { createCliRenderer } from "@opentui/core";
23
import { createRoot } from "@opentui/react";
34
import { App } from "./App";

0 commit comments

Comments
 (0)