You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the main process: import installExtension, { REACT_DEVELOPER_TOOLS } from 'electron-devtools-installer';
Run
App threw an error during load
Error: ENOENT: no such file or directory, mkdir 'C:\Users\<user>\AppData\Roaming\Electron\extensions'
at Error (native)
at fs.mkdirSync (fs.js:922:18)
at Object.fs.mkdirSync (ELECTRON_ASAR.js:675:16)
at getPath (C:\Work\UXTools-git\indigo-electron\node_modules\electron-devtools-installer\dist\utils.js:26:18)
at Object.<anonymous> (C:\Work\UXTools-git\indigo-electron\node_modules\electron-devtools-installer\dist\index.js:42:59)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
It seems that some code is being run at import this could be solved executing that code lazily when needed.
The text was updated successfully, but these errors were encountered:
Vlemert
pushed a commit
to Vlemert/electron-devtools-installer
that referenced
this issue
Jan 10, 2017
The mkdir in getPath gets executed on import whenever this library is used. This causes an error to be thrown when the electron app that uses it is freshly installed, and the electron userData directory is not yet created.
This change moves the mkdir call to the first place the existence of the extensionsStore is actually required.
FixesMarshallOfSound#29
The mkdir in getPath gets executed on import whenever this library is used. This causes an error to be thrown when the electron app that uses it is freshly installed, and the electron userData directory is not yet created.
This change moves the mkdir call to the first place the existence of the extensionsStore is actually required.
Fixes#29
Steps:
import installExtension, { REACT_DEVELOPER_TOOLS } from 'electron-devtools-installer';
It seems that some code is being run at
import
this could be solved executing that code lazily when needed.The text was updated successfully, but these errors were encountered: