Skip to content

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

Open
@hab25

Description

@hab25

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions