fix: runtime issue for electron app (#6306)

Looks like we need to be careful to share common libraries between electron (nodejs) & web

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/7e568e47-2d61-45c8-8a1e-b933b63fd1a9.png)
This commit is contained in:
pengx17
2024-03-26 02:04:13 +00:00
parent 00092c9955
commit 1c9d899831
6 changed files with 13 additions and 5 deletions
@@ -1,7 +1,10 @@
import fs from 'node:fs';
import path from 'node:path';
import { AppConfigStorage, defaultAppConfig } from '@toeverything/infra';
import {
AppConfigStorage,
defaultAppConfig,
} from '@toeverything/infra/app-config-storage';
import { app } from 'electron';
const FILENAME = 'config.json';