You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./node_modules/graceful-fs/graceful-fs.js:1:9-22 - Error: Module not found: Error: Can't resolve 'fs' in '/home/.../angular-electron/node_modules/graceful-fs'
./node_modules/jsonfile/index.js:10:8-21 - Error: Module not found: Error: Can't resolve 'fs' in '/home/.../angular-electron/node_modules/jsonfile'
Additional context
OS: Linux Ubuntu 20.04. LTS
Thanks in advance for the help, I know is not anymore the recomend way to use Node library in the rendered context but my app start with this template 5 years ago in this way
The text was updated successfully, but these errors were encountered:
Thanks, so if another person is in the same case: it is no longer possible (it was at least until v6.0.1) to import packages which depend on core Node like any browser package.
Describe the bug
I can't use 3rd party libraries with TS module import from Electron's Renderer process (Angular) that uses NodeJS core module.
To Reproduce
Steps to reproduce the behavior:
npm install fs-extra --save
cd app && npm install fs-extra --save && cd ..
import * as fsExtra from 'fs-extra';
(same problems with 3 others package that depend of 'fs')npm start
Errors
Additional context
Thanks in advance for the help, I know is not anymore the recomend way to use Node library in the rendered context but my app start with this template 5 years ago in this way
The text was updated successfully, but these errors were encountered: