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 follows, as appropriate.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
I'm not sure whether this is a problem with ElectronForge or Webpack or @stroncium/procfs, but since start works and make fails, I'm posting this as an ElectronForge issue.
Issue Details
Electron Forge Version:
6.0.0-beta.50
Electron Version:
v8.0.2
Operating System:
macOS 10.15.3 & Linux Ubuntu 18.04 LTS
Expected Behavior
The typescript-webpack template make command can successfully build the trash package (or rather its dependency @stroncium/procfs) on macOS and Linux.
Actual Behavior
It works fine:
on Windows (instead of Linux/macOS)
or when using the default ElectronForge template (instead of typescript-webpack)
or when using start (instead of make)
But otherwise, I get this error:
> test-trash-webpack@1.0.0 make /Users/nathan/dev/test-trash-webpack
> electron-forge make
✔ Checking your system
✔ Resolving Forge Config
We need to package your application before we can make it
✖ Compiling Main Process Code
An unhandled error has occurred inside Forge:
Compilation errors in the main process: Hash: 76c19426585ec5cb1d9f
Version: webpack 4.41.6
Time: 3954ms
Built at: 27/02/2020 14:21:04
Asset Size Chunks Chunk Names
index.js 115 KiB 0 main
index.js.map 459 KiB 0 [dev] main
native_modules/macos-trash 9.11 KiB
native_modules/windows-trash.exe 28 KiB
Entrypoint main = index.js index.js.map
[0] external "path" 42 bytes {0} [built]
[1] external "fs" 42 bytes {0} [built]
[2] external "util" 42 bytes {0} [built]
[5] external "child_process" 42 bytes {0} [built]
[11] external "electron" 42 bytes {0} [built]
[25] ./src/index.ts 1.75 KiB {0} [built]
[26] ./node_modules/trash/index.js 1.21 KiB {0} [built]
[27] ./node_modules/globby/index.js 3.17 KiB {0} [built]
[43] ./node_modules/p-try/index.js 211 bytes {0} [built]
[44] ./node_modules/is-path-inside/index.js 439 bytes {0} [built]
[45] ./node_modules/trash/lib/macos.js 738 bytes {0} [built]
[46] ./node_modules/trash/lib/linux.js 2.2 KiB {0} [built]
[94] ./node_modules/trash/lib/windows.js 563 bytes {0} [built]
[95] ./node_modules/electron-squirrel-startup/index.js 1 KiB {0} [built]
[96] ./node_modules/debug/src/index.js 314 bytes {0} [built]
+ 88 hidden modules
ERROR in ./node_modules/@stroncium/procfs/lib/parsers.js
Module not found: Error: Can't resolve './parsers/' in '/Users/nathan/dev/test-trash-webpack/node_modules/@stroncium/procfs/lib'
@ ./node_modules/@stroncium/procfs/lib/parsers.js 48:15-42
@ ./node_modules/@stroncium/procfs/index.js
@ ./node_modules/trash/lib/linux.js
@ ./node_modules/trash/index.js
@ ./src/index.ts
Error: Compilation errors in the main process: Hash: 76c19426585ec5cb1d9f
Version: webpack 4.41.6
Time: 3954ms
Built at: 27/02/2020 14:21:04
Asset Size Chunks Chunk Names
index.js 115 KiB 0 main
index.js.map 459 KiB 0 [dev] main
native_modules/macos-trash 9.11 KiB
native_modules/windows-trash.exe 28 KiB
Entrypoint main = index.js index.js.map
[0] external "path" 42 bytes {0} [built]
[1] external "fs" 42 bytes {0} [built]
[2] external "util" 42 bytes {0} [built]
[5] external "child_process" 42 bytes {0} [built]
[11] external "electron" 42 bytes {0} [built]
[25] ./src/index.ts 1.75 KiB {0} [built]
[26] ./node_modules/trash/index.js 1.21 KiB {0} [built]
[27] ./node_modules/globby/index.js 3.17 KiB {0} [built]
[43] ./node_modules/p-try/index.js 211 bytes {0} [built]
[44] ./node_modules/is-path-inside/index.js 439 bytes {0} [built]
[45] ./node_modules/trash/lib/macos.js 738 bytes {0} [built]
[46] ./node_modules/trash/lib/linux.js 2.2 KiB {0} [built]
[94] ./node_modules/trash/lib/windows.js 563 bytes {0} [built]
[95] ./node_modules/electron-squirrel-startup/index.js 1 KiB {0} [built]
[96] ./node_modules/debug/src/index.js 314 bytes {0} [built]
+ 88 hidden modules
ERROR in ./node_modules/@stroncium/procfs/lib/parsers.js
Module not found: Error: Can't resolve './parsers/' in '/Users/nathan/dev/test-trash-webpack/node_modules/@stroncium/procfs/lib'
@ ./node_modules/@stroncium/procfs/lib/parsers.js 48:15-42
@ ./node_modules/@stroncium/procfs/index.js
@ ./node_modules/trash/lib/linux.js
@ ./node_modules/trash/index.js
@ ./src/index.ts
at cb (/Users/nathan/dev/test-trash-webpack/node_modules/@electron-forge/plugin-webpack/src/WebpackPlugin.ts:250:31)
at finalCallback (/Users/nathan/dev/test-trash-webpack/node_modules/webpack/lib/Compiler.js:257:39)
at /Users/nathan/dev/test-trash-webpack/node_modules/webpack/lib/Compiler.js:273:13
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/nathan/dev/test-trash-webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:4:1)
at AsyncSeriesHook.lazyCompileHook (/Users/nathan/dev/test-trash-webpack/node_modules/tapable/lib/Hook.js:154:20)
at onCompiled (/Users/nathan/dev/test-trash-webpack/node_modules/webpack/lib/Compiler.js:271:21)
at /Users/nathan/dev/test-trash-webpack/node_modules/webpack/lib/Compiler.js:681:15
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/nathan/dev/test-trash-webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:4:1)
at AsyncSeriesHook.lazyCompileHook (/Users/nathan/dev/test-trash-webpack/node_modules/tapable/lib/Hook.js:154:20)
at /Users/nathan/dev/test-trash-webpack/node_modules/webpack/lib/Compiler.js:678:31
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/nathan/dev/test-trash-webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:4:1)
at AsyncSeriesHook.lazyCompileHook (/Users/nathan/dev/test-trash-webpack/node_modules/tapable/lib/Hook.js:154:20)
at /Users/nathan/dev/test-trash-webpack/node_modules/webpack/lib/Compilation.js:1423:35
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/nathan/dev/test-trash-webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:4:1)
at AsyncSeriesHook.lazyCompileHook (/Users/nathan/dev/test-trash-webpack/node_modules/tapable/lib/Hook.js:154:20)
at /Users/nathan/dev/test-trash-webpack/node_modules/webpack/lib/Compilation.js:1414:32
To Reproduce
yarn create electron-app test-trash-webpack --template=typescript-webpack
cd test-trash-webpack
yarn add trash
Preflight Checklist
I'm not sure whether this is a problem with ElectronForge or Webpack or @stroncium/procfs, but since
start
works andmake
fails, I'm posting this as an ElectronForge issue.Issue Details
Expected Behavior
The typescript-webpack template
make
command can successfully build the trash package (or rather its dependency@stroncium/procfs)
on macOS and Linux.Actual Behavior
It works fine:
start
(instead of make)But otherwise, I get this error:
To Reproduce
yarn create electron-app test-trash-webpack --template=typescript-webpack cd test-trash-webpack yarn add trash
then add this to index.ts
start
runs fine, butmake
fails with the above error.Additional Information
The same thing happens when requesting the procfs package directly:
This is the offending file: https://github.com/stroncium/nodejs-procfs/blob/master/lib/parsers.js
The text was updated successfully, but these errors were encountered: