Commit 9fb109e
committed
Fix ESM module error in CI by adding type: module
Add "type": "module" to package.json to fix the ERR_REQUIRE_ESM error
that was occurring in GitHub Actions CI.
The error occurred because Vite 7+ is ESM-only and requires Node.js to
treat files as ES modules. Without "type": "module", Node.js defaults to
CommonJS, causing the error when trying to load vite.config.ts.
This fix ensures:
- Vite config loads correctly as an ES module
- Tests with coverage work in CI
- Build process succeeds in all environments
Verified locally:
- pnpm test:coverage --run passes with 87.2% coverage
- pnpm build succeeds1 parent a4678e7 commit 9fb109e
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments