warpdesign / react-explorer

File manager written in TypeScript, React, Blueprint and packaged with Electron
MIT License
232 stars 34 forks source link

Build: Class fields need to be initialized (SettingsState) #436

Closed warpdesign closed 4 months ago

warpdesign commented 4 months ago

Some error occur on certain version of node/swc because some class fields of SettingsState are not initialised.

This prevents react-explorer from building in search configurations.

Before:

class SettingsState {
  isDarkModeActive: boolean
}

After:

class SettingsState {
  isDarkModeActive: boolean = ''
}