electron-webpack-quick-start icon indicating copy to clipboard operation
electron-webpack-quick-start copied to clipboard

"Renderer: AttachConsole failed with error 6: The handle is invalid" on "yarn dev"

Open tiagorangel1 opened this issue 7 months ago • 1 comments

Nothing about the code changed, I used the instructions in the README

PS C:\path> yarn
yarn install v1.22.22
[1/5] Resolving packages...
[2/5] Fetching packages...
[3/5] Linking dependencies...
[4/5] Building fresh packages...
[5/5] Cleaning modules...
Done in 121.53s.


PS C:\path> yarn dev
yarn run v1.22.22
$ electron-webpack dev
┏ Renderer -------------------

  AttachConsole failed with error 6: The handle is invalid.

┗ ----------------------------
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (C:\path\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\path\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (C:\path\node_modules\webpack\lib\NormalModule.js:471:10)
    at C:\path\node_modules\webpack\lib\NormalModule.js:503:5  
    at C:\path\node_modules\webpack\lib\NormalModule.js:358:12 
    at C:\path\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (C:\path\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at Array.<anonymous> (C:\path\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
    at Storage.finished (C:\path\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
    at C:\path\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
    at C:\path\node_modules\graceful-fs\graceful-fs.js:115:16  
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

tiagorangel1 avatar Jul 22 '24 09:07 tiagorangel1