electron-store icon indicating copy to clipboard operation
electron-store copied to clipboard

How can I integrate this library in an Angular Electron App ?

Open Karim-Oodrive opened this issue 3 years ago • 7 comments

Hello, I 'am a confirmed Angular Developer and I'am working on an angular-electron,

I want to integrate electron-store in my Angular application, but I didn't know from where should I start ? After installing the package, when I do :

const Store = require('electron-store');
const store = new Store();

I always get many errors

Please give me a response, that will help me a lot, I'am so pressed with this project! thanks.

Karim-Oodrive avatar Jun 16 '21 20:06 Karim-Oodrive

For me it gives:

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "os": require.resolve("os-browserify/browser") }'
        - install 'os-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "os": false }

Error: node_modules/conf/dist/source/index.d.ts:5:5 - error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.

     #private;

LeParadoxHD avatar Jun 29 '21 21:06 LeParadoxHD

same issue with polyfill, curious if theres solution.

mikeliao97 avatar Oct 14 '21 13:10 mikeliao97

Any solution yet?

orlandovallejos avatar Dec 06 '21 00:12 orlandovallejos

A solution would be great indeed

jakehockey10 avatar Jul 10 '22 01:07 jakehockey10

Same issue with React using the boiler template: https://github.com/electron-react-boilerplate/electron-react-boilerplate

pjoulot avatar Jan 02 '23 04:01 pjoulot

Is there a solution for that?

marcjulianfleck avatar May 06 '23 09:05 marcjulianfleck

@marcjulianfleck see https://github.com/sindresorhus/electron-store/issues/259#issuecomment-1817571011

sintanial avatar Nov 18 '23 17:11 sintanial