SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

import { ipcRender } from 'electron'渲染进程中这么引入electron 需要怎么配置 #1034

Open mrgu1609 opened 4 years ago

mrgu1609 commented 4 years ago

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

#

渲染进程中 直接使用这种方式引入 import { ipcRender } from 'electron' 会报错fs系列的问题,请问大佬们怎么配置一下可以这么直接使用import 的方式。虽然require的方式也能解决问题

How can I reproduce this problem?

#

If visual, provide a screenshot.

#

Tell me about your development environment.

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.