Commit d51890f
committed
fix: resolve TypeScript type generation and import issues
Fixed two critical bugs preventing frontend build:
1. **TypeScript Type Generation (CommonJS/ESM)**
- TypeGen generates CommonJS by default but Vite requires ESM
- Created scripts/generate-types.sh to automate proper generation
- Script modifies tsconfig.json to output ESM and recompiles TypeScript
2. **useCore.ts Import**
- Fixed import to use Model instead of ViewModel
- ViewModel was removed in previous refactoring (commit 3957347)
These fixes resolve the frontend build error where Rollup couldn't import
CommonJS modules from TypeScript files.
Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>1 parent 8e82e91 commit d51890f
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments