Skip to content

electron-forge start does not support extends in tsconfig.json #3883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
hab25 opened this issue Mar 13, 2025 · 1 comment
Open
3 tasks done

electron-forge start does not support extends in tsconfig.json #3883

hab25 opened this issue Mar 13, 2025 · 1 comment

Comments

@hab25
Copy link

hab25 commented Mar 13, 2025

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Forge version

7.7.0

Electron version

35.0.0

Operating system

PopOS! 22.04 LTS

Last known working Forge version

No response

Expected behavior

electron-forge start should successfully start the electron app

Actual behavior

Command outputs to the terminal:

✔ Checking your system
✔ Locating application
✖ Loading configuration
  › Unable to use specified module loaders for ".ts".
◼ Preparing native dependencies
◼ Running generateAssets hook
◼ Running preStart hook
An unhandled rejection has occurred inside Forge:
Error: Unable to use specified module loaders for ".ts".
at exports.prepare (/home/hab25/my/work/vite-electron-forge-template/my-new-app/node_modules/rechoir/index.js:58:11)
    at exports.default (/home/hab25/my/work/vite-electron-forge-template/my-new-app/node_modules/@electron-forge/core/dist/util/forge-config.js:141:25)
    at async /home/hab25/my/work/vite-electron-forge-template/my-new-app/node_modules/@electron-forge/core/dist/api/start.js:44:35
    at async _Task.taskFn (/home/hab25/my/work/vite-electron-forge-template/my-new-app/node_modules/@electron-forge/tracer/dist/index.js:58:20)
    at async _Task.run (/home/hab25/my/work/vite-electron-forge-template/my-new-app/node_modules/listr2/dist/index.cjs:2063:11)

Steps to reproduce

npx create-electron-app@latest my-new-app --template=vite-typescript
cd my-new-app
mv tsconfig.json tsconfig.base.json
echo '{"extends": ["./tsconfig.base.json"]}' > tsconfig.json
npx electron-forge start

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant