Commit db1978b
Fix TypeScript import error for React in RSC files
Changed from:
import React, { createContext } from 'react'
To:
import * as React from 'react'
import { createContext } from 'react'
This fixes the CI error:
error TS1259: Module can only be default-imported using the 'esModuleInterop' flag
The @types/react package uses 'export =' syntax, which requires namespace imports
unless esModuleInterop is enabled. Using separate imports avoids this requirement.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 6f6364a commit db1978b
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments