In version 2.0.0.beta13, there is a type error in electrobun.config.ts
Author: mchao123Created Sep 3, 2026Updated Sep 3, 2026
There is a minor type error in the latest test version. This issue will be fixed by modifying the template file, as the "include" field in the tsconfig.json file does not list electrobun.config.ts, causing import type { ElectrobunConfig } from "electrobun"; to fail because electrobun cannot be found.
Solution:
{
"extends": "./.hutch/devkit/tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"resolveJsonModule": true,
"allowJs": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "bundler"
},
"include": ["src"],
"exclude": ["node_modules", "dist", "build", "../../package/dist"]
}Replace with
"include": ["src","./electrobun.config.ts"],By the way, are there any plans to support TypeScript 6.0 or even 7.x?
Source: blackboardsh/electrobun