今天入坑Electron,在win7
运行https://github.com/electron/electron-quick-start.git
时触发以下问题:
>cnpm start
> electron-quick-start@1.0.0 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丢失。修复完成后即可运行。