Hey, I'm struggling with the initialization of this module.
If I do the following, I can't build and start electron anymore. If I remove the store: Store = new Store();
line, it works but well, I obviously want to use this module :D.
I'm using TypeScript and Angular. The error message is a total mess but here is a part of it:
Field 'browser' doesn't contain a valid alias configuration
resolve as module
looking for modules in C:/Users/.../[39m
using description file: C:\Users\...\package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
using description file: C:\Users\...\package.json (relative path: ./path)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Users\...\path doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Users\...\path.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
There are hundreds or thousands of lines with this kind of error "Field 'browser' doesn't contain a valid alias configuration" is everywhere.
import { Component, OnInit } from '@angular/core';
import Store from 'electron-store';
@Component({
selector: 'app-settings',
templateUrl: './settings.component.html',
styleUrls: ['./settings.component.css']
})
export class SettingsComponent implements OnInit {
constructor() { }
store: Store = new Store();
Can someone help maybe? Do I need to configure something in the node entrypoint (index.js) or something?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too