ankurk91 / google-chat-electron

An unofficial desktop app for Google Chat :electron:
GNU General Public License v3.0
162 stars 49 forks source link

Build failed google-chat-electron@2.13.0 #46

Closed alescdb closed 2 years ago

alescdb commented 2 years ago

Hi,

Just to let you know :-)

> yarn --version
1.22.17
> electron --version
v16.0.1
> tsc --version
Version 4.5.2
npm run pack:linux
[...]
src/main/config.ts:74:37 - error TS2345: Argument of type '{ schema: Schema<StoreType>; clearInvalidConfig: true; }' is not assignable to parameter of type 'Options<StoreType>'.
  Property 'configFileMode' is missing in type '{ schema: Schema<StoreType>; clearInvalidConfig: true; }' but required in type 'Except<Options<StoreType>, "configName" | "projectName" | "projectVersion" | "projectSuffix">'.

74 export default new Store<StoreType>({
                                       ~
75   schema,
   ~~~~~~~~~
76   clearInvalidConfig: true
   ~~~~~~~~~~~~~~~~~~~~~~~~~~
77 });
   ~

  node_modules/conf/dist/source/types.d.ts:209:14
    209     readonly configFileMode: number;
                     ~~~~~~~~~~~~~~
    'configFileMode' is declared here.

Found 1 error.
ankurk91 commented 2 years ago

Please use pnpm, i am no longer using yarn

I am aware of this issue, i have not update typescript to latest version yet.