PKief / angular-cli-electron

Angular CLI + Electron
https://medium.com/@PhilippKief/angular-desktop-apps-a9ce9e3574e8
48 stars 14 forks source link

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

Open Mihail12 opened 6 years ago

Mihail12 commented 6 years ago

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'```
LeatonChuter commented 5 years ago

I too am having this issue