electron-store icon indicating copy to clipboard operation
electron-store copied to clipboard

Error: Cannot find module 'ajv-formats'

Open MetaiR opened this issue 3 years ago • 2 comments

my app has been created with electron-forge and I got this error during electron startup:

App threw an error during load
Error: Cannot find module 'ajv-formats'
    at webpackMissingModule (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:6530:87)
    at Object.<anonymous> (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:6530:173)
    at Object../node_modules/conf/dist/source/index.js (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:6980:30)
    at __webpack_require__ (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:21:30)
    at Object../node_modules/electron-store/index.js (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:8141:14)
    at __webpack_require__ (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:21:30)
    at Object../src/util/db-util.ts (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:14092:40)
    at __webpack_require__ (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:21:30)
    at Object../src/main.ts (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:14026:17)
    at __webpack_require__ (F:\git\teacher_e-iac_encrypted\.webpack\main\index.js:21:30)

------------update----------- looks like the problem is related to yarn I run my app with npm and it fixed but I had this problem with yarn and yarn.lock

MetaiR avatar Nov 19 '21 20:11 MetaiR

Same thing, electron-forge and yarn. Sadly I can't use npm since I'm getting native module build errors with file: resolutions.

ivancuric avatar Nov 23 '21 16:11 ivancuric

Same problem for me. Solved by removing node_modules.

franz-geiser avatar Feb 15 '22 11:02 franz-geiser