今天入坑Electron,在win7
運行https://github.com/electron/electron-quick-start.git
時觸發以下問題:
>cnpm start
> [email protected] start D:\Code\test_project\electron-quick-start
> electron .
(electron) The default value of app.allowRendererProcessReuse is deprecated, it
is currently "false". It will change to be "true" in Electron 9. For more information please check https://github.com/electron/electron/issues/18397
[7404:0301/175745.988:ERROR:gl_utils.cc(325)] [.DisplayCompositor] GL_OUT_OF_MEMORY: Internal D3D11 error: HRESULT: 0x8007000E: LoadLibrary failed to load D3D Compiler DLL.
[7404:0301/175745.989:ERROR:gl_utils.cc(325)] [.DisplayCompositor] GL_OUT_OF_MEMORY: Context has been lost.
[7404:0301/175745.989:ERROR:gl_utils.cc(325)] [.DisplayCompositor] GL_OUT_OF_MEMORY: Context has been lost.
[7404:0301/175745.989:ERROR:gl_utils.cc(325)] [.DisplayCompositor] GL_OUT_OF_MEMORY: Context has been lost.
通過Baidu查詢不到解決方法,所以下載DirectX修復工具
修復結果是d3dcompiler.exe丟失。修復完成後即可運行。