Skip to content

create-electron-app@alpha: bundled template does not include .oxlintrc.json #4255

Closed

Description

@ZeroAurora

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

8.0.0-alpha.8

Electron version

N/A

Operating system

macOS Sequoia 15.7.4

Last known working Forge version

No response

Expected behavior

Running create-electron-app@alpha should create a new app

Actual behavior

The creation fails with:

❯ Preparing TypeScript files and configuration
  electron-forge:template:base copying "/Users/zeroaurora/.npm/_npx/c435ad3de705b14b/node_modules/@electron-forge/template-vite-typescript/tmpl/vite.main.config.ts" --> "/Users/zeroaurora/src/ZeroAurora/zeroth/vite.main.config.ts" +1ms
  electron-forge:template:base copying "/Users/zeroaurora/.npm/_npx/c435ad3de705b14b/node_modules/@electron-forge/template-vite-typescript/tmpl/vite.preload.config.ts" --> "/Users/zeroaurora/src/ZeroAurora/zeroth/vite.preload.config.ts" +1ms
  electron-forge:template:base copying "/Users/zeroaurora/.npm/_npx/c435ad3de705b14b/node_modules/@electron-forge/template-vite-typescript/tmpl/vite.renderer.config.ts" --> "/Users/zeroaurora/src/ZeroAurora/zeroth/vite.renderer.config.ts" +0ms
  electron-forge:template:base copying "/Users/zeroaurora/.npm/_npx/c435ad3de705b14b/node_modules/@electron-forge/template-vite-typescript/tmpl/tsconfig.json" --> "/Users/zeroaurora/src/ZeroAurora/zeroth/tsconfig.json" +1ms
  electron-forge:template:base copying "/Users/zeroaurora/.npm/_npx/c435ad3de705b14b/node_modules/@electron-forge/template-vite-typescript/tmpl/.oxlintrc.json" --> "/Users/zeroaurora/src/ZeroAurora/zeroth/.oxlintrc.json" +0ms
✖ Preparing TypeScript files and configuration [FAILED: ENOENT: no such file or directory, open '/Users/zeroaurora/.npm/_npx/c435ad3de705b14b/.oxfmtrc.json']
✖ Initializing template [FAILED: ENOENT: no such file or directory, open '/Users/zeroaurora/.npm/_npx/c435ad3de705b14b/.oxfmtrc.json']

An unhandled rejection has occurred inside Forge:
Error: ENOENT: no such file or directory, open '/Users/zeroaurora/.npm/_npx/c435ad3de705b14b/.oxfmtrc.json'

...indicating the oxfmt config is not bundled with the package.

Steps to reproduce

Use any other templates than base

Additional information

Perhaps caused by minimatch thus npm not matching dotfiles by default

"files": [
"dist",
"src",
"tmpl"
]

Activity

  1. added theissue type on May 11, 2026
  2. erickzhao commented on May 11, 2026

    @erickzhao
    Member

    @ZeroAurora thanks for the report!

  3. self-assigned this
    on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions