Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Karim-Oodrive opened this issue Jun 16, 2021 · 7 comments
Open

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

Karim-Oodrive opened this issue Jun 16, 2021 · 7 comments

Comments

@Karim-Oodrive
Copy link

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.

@LeParadoxHD
Copy link

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;

@mikeliao97
Copy link

same issue with polyfill, curious if theres solution.

@orlandovallejos
Copy link

Any solution yet?

@jakehockey10
Copy link

A solution would be great indeed

@pjoulot
Copy link

pjoulot commented Jan 2, 2023

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

@marcjulianfleck
Copy link

Is there a solution for that?

@sintanial
Copy link

@marcjulianfleck see #259 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants