angular-cli-electron icon indicating copy to clipboard operation
angular-cli-electron copied to clipboard

Error: Can't resolve 'fs' in '...\node_modules\electron'

Open Mihail12 opened this issue 7 years ago • 1 comments

When i try to import { ipcRenderer } from 'electron'; than add the service to component constructor(private mainService: MainService) Cant resolve the error in console:

./node_modules/electron/index.js
Module not found: Error: Can't resolve 'fs' in 'D:\ST\angular-cli-electron\node_modules\electron'```

Mihail12 avatar Jul 27 '18 09:07 Mihail12

I too am having this issue

LeatonChuter avatar Apr 15 '19 16:04 LeatonChuter