Pre-flight checklist
Electron Forge version
6.0.4
Electron version
v22.0.0
Operating system
macOS 13.1 m1
Last known working Electron Forge version
6.0.0-beta.67
Expected behavior
The demo app should be able to load the renderer's index.js file.
Actual behavior
It does not, I get ERR_FILE_NOT_FOUND. See below.
Steps to reproduce
Start with the demo app:
yarn create electron-app my-new-app2 --template=webpack-typescript
Edit webpack.renderer.config.ts and add one line target: node, like this:
.
.
.
export const rendererConfig: Configuration = {
module: {
rules,
},
plugins,
resolve: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css'],
},
target: 'node',
};
Package and run
% yarn package
% open out/my-new-app2-darwin-arm64/my-new-app2.app
I expect the packaged application to be able to load index.js. Instead, it fails with ERR_FILE_NOT_FOUND because it is looking for Request URL: file:///Users/petertorelli/proj/my-new-app2/out/my-new-app2-darwin-arm64/my-new-app2.app/Contents/Resources/app/.webpack/renderer/main_window/main_window/index.js

As you can see 'main_window/main_window' is not a valid path:
% tree out/my-new-app2-darwin-arm64/my-new-app2.app/Contents/Resources/app/.webpack
out/my-new-app2-darwin-arm64/my-new-app2.app/Contents/Resources/app/.webpack
├── main
│ └── index.js
└── renderer
└── main_window
├── index.html
├── index.js
└── preload.js
Additional information
EDIT: It was packaging fine in 6.0.0-beta.67 as seen in my other open issue #2949.
Pre-flight checklist
Electron Forge version
6.0.4
Electron version
v22.0.0
Operating system
macOS 13.1 m1
Last known working Electron Forge version
6.0.0-beta.67
Expected behavior
The demo app should be able to load the renderer's
index.jsfile.Actual behavior
It does not, I get ERR_FILE_NOT_FOUND. See below.
Steps to reproduce
Start with the demo app:
yarn create electron-app my-new-app2 --template=webpack-typescriptEdit
webpack.renderer.config.tsand add one linetarget: node, like this:Package and run
I expect the packaged application to be able to load index.js. Instead, it fails with ERR_FILE_NOT_FOUND because it is looking for
Request URL: file:///Users/petertorelli/proj/my-new-app2/out/my-new-app2-darwin-arm64/my-new-app2.app/Contents/Resources/app/.webpack/renderer/main_window/main_window/index.jsAs you can see 'main_window/main_window' is not a valid path:
Additional information
EDIT: It was packaging fine in
6.0.0-beta.67as seen in my other open issue #2949.