-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
Webpack template has not been updated to the new plugins syntax #2992
Comments
I have fixed this by changing plugins in
|
Ah yes good catch, @rinqtmith is correct. We recently changed the syntax for plugins to more closer align with the syntax for makers / publishers. Looks like we forgot to update the webpack template to use the new syntax 😅 |
Fixed in #2990 |
@rinqtmith @MarshallOfSound I'm sorry. I do not understand what should I do in order to fix this issue that suddenly came up This is my
|
I think it is not fixed in #2990. I tried a new project and it still makes old version You need to pass an object {name, config} to plugins. For example,
|
@raphael10-collab per the comment above you need to change this syntax. "plugins": [
[
"@electron-forge/plugin-webpack",
{ ... }
]
] into this syntax "plugins": [
{
"name": "@electron-forge/plugin-webpack",
"config": { ... }
}
] @rinqtmith the fix has not been published yet, we're aiming to get that out tomorrow PST |
Pre-flight checklist
Electron Forge version
6.0.0-beta.68
Electron version
v21.2.0
Operating system
Windows 10
Last known working Electron Forge version
No response
Expected behavior
npm start should launch the application
Actual behavior
Getting error:
An unhandled rejection has occurred inside Forge:
Error: Expected plugin to either be a plugin instance or a { name, config } object but found @electron-forge/plugin-webpack,[object Object]
Electron Forge was terminated. Location:
{}
Steps to reproduce
I am trying to create a fresh TypeScript + Webpack application using electron-forge
Go to https://www.electronforge.io/templates/typescript-+-webpack-template
Copy the command to create new project:
npx create-electron-app my-new-app --template=typescript-webpack
Without changing any code run the application using
npm start
Additional information
No response
The text was updated successfully, but these errors were encountered: