Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用了electron^34.0.1的项目,启动后控制台报错提示:ERROR:direct_composition_support.cc(1070) #266

Open
aoqixie opened this issue Jan 24, 2025 · 0 comments

Comments

@aoqixie
Copy link

aoqixie commented Jan 24, 2025

项目依赖如下:

"devDependencies": {
    "@vitejs/plugin-vue": "^5.0.4",
    "electron": "^34.0.1",
    "electron-builder": "^24.13.3",
    "typescript": "^5.4.2",
    "vite": "^5.1.5",
    "vite-plugin-electron": "^0.28.4",
    "vite-plugin-electron-renderer": "^0.14.5",
    "vue": "^3.4.21",
    "vue-tsc": "^2.0.6"
  }

npm run dev启动后,控制台报错如下:

[17580:0124/152351.117:ERROR:direct_composition_support.cc(1070)] QueryInterface to IDCompositionDevice4 failed: 不支持此接口 (0x80004002)

不过程序正常启动,好像也没什么问题。在找原因的过程中,发现electron-vite-vue这个模板没有出现这个错误提示。查看package.json,发现依赖的electron是29.1.1,把electron的版本改成34.0.1后,也提示了这个错误。

我是一个初学者,不清楚这个错误是如何产生的,会造成什么影响,希望大佬能教教我

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant