electron-store
electron-store copied to clipboard
Error: Cannot find module 'ajv/dist/compile/context'
I'm getting the error "Error: Cannot find module 'ajv/dist/compile/context'" Using electron-store ^7.0.0 and up. Downgraded to 6.0.1 and everything worked fine.
I installed "ajv" but the context file doesn't exist in the location specified in the error.
Can you try the latest version? It upgrades Ajv. https://github.com/sindresorhus/electron-store/releases/tag/v8.0.0
Looks like its missing "codegen" now. Error: Cannot find module 'ajv/dist/compile/codegen'
Then I don't really know. I would recommend opening an issue on Ajv, as that's where the error is coming from.
@augster I had the same problem because there seams to be a problem NPM v7 and Node v16.
I did the following steps to solve this problem:
- delete
package-lock.jsonfile - delete
node_modulesfolder - set Node to v14.16.0
- set NPM to v6.14.11
- run
npm install
I think this is just an issue when using npm v7. I don't get this issue when using npm v6 and Node v16.
I still get it if I use Yarn though.
I would like to know if there is any progress on this issue? I am using electron-store v6 as an alternative for one of my projects because of this issue.
I have the same problem
Mine: npm -v 6.14.5 node -v v14.5.0
I think this is just an issue when using npm v7. I don't get this issue when using npm v6 and Node v16.
I still get it if I use Yarn though.
Indeed, I used npm and npm audit fix to solve this problem
Don't use yarn
I'm having the same problem.
I just installed electron-store.
When I run npm start, I get:
Error: Cannot find module 'ajv/dist/compile/codegen'
I'm having the same problem.
I have the same problem, have a solution? thanks
I'm having the same problem.
me2
Same issue here.