warpdesign / react-explorer

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

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

Closed warpdesign closed 6 months ago

warpdesign commented 6 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 = ''
}