Webpack cannot find module 'electron'

后端 未结 3 835
滥情空心
滥情空心 2021-01-11 23:51

I am trying to develop a little electron angular2 application based on this tutorial

It seems their is some error with the bundling of webpack, because i cant requir

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-12 00:19

    Try adding target: "electron-renderer" to the bottom of the module.exports object in your webpack config. (mine was created via ng eject via the Angular CLI)

提交回复
热议问题