You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Electron Forge version
latest
Electron version
latest
Operating system
windows 11
Last known working Electron Forge version
unknown
Expected behavior
Running npm init electron-app@latest my-new-app -- --template=webpack properly creates a electron-forge project with webpack compatibility.
Actual behavior
Running npm init electron-app@latest my-new-app -- --template=webpack creates a electron-forge project without webpack compatibilty, and without several required files. Following is an image of file explorer with the created directory. The command was working as soon as 3 days ago however it recently broke for an unknown reason
from "my-new-app" directory
"my-new-app/src"
Steps to reproduce
create a webpack template. I literally have no idea if this is a recent change or me being dumb but it looks nothing like the other electron-forge project I have been working on this week.
Additional information
The command used is directly from the electron-forge website under "built-in-templates" in "webpack". Downloading the template even shows an error after running npm start. that being:
Uncaught Exception:
(Index.js path):1
import {app, BrowserWindow} from 'electron'
^^^^
Syntax Error: Cannot use import statement outside module.
I took this as more evidence something is wrong rather than another error in itself given that it has a pretty simple fix. That being adding a "type" : "module", line after "productName" in the package.json.
The text was updated successfully, but these errors were encountered:
I'm sorry if there's something wrong with this but I don't have much experience with JavaScript or large complicated projects like this. And most of my coding experience is with small python projects. I just want to learn a front-end framework for desktop and move on with my life.
PS: sorry for the weird formatting i'm a bit new to markdown.
Pre-flight checklist
Electron Forge version
latest
Electron version
latest
Operating system
windows 11
Last known working Electron Forge version
unknown
Expected behavior
Running
npm init electron-app@latest my-new-app -- --template=webpack
properly creates a electron-forge project with webpack compatibility.Actual behavior
Running
npm init electron-app@latest my-new-app -- --template=webpack
creates a electron-forge project without webpack compatibilty, and without several required files. Following is an image of file explorer with the created directory. The command was working as soon as 3 days ago however it recently broke for an unknown reasonfrom "my-new-app" directory
"my-new-app/src"
Steps to reproduce
create a webpack template. I literally have no idea if this is a recent change or me being dumb but it looks nothing like the other electron-forge project I have been working on this week.
Additional information
The command used is directly from the electron-forge website under "built-in-templates" in "webpack". Downloading the template even shows an error after running npm start. that being:
I took this as more evidence something is wrong rather than another error in itself given that it has a pretty simple fix. That being adding a
"type" : "module",
line after "productName" in the package.json.The text was updated successfully, but these errors were encountered: