Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'espree' #285

Closed
scagood opened this issue Dec 18, 2023 · 0 comments · Fixed by #286
Closed

Error: Cannot find module 'espree' #285

scagood opened this issue Dec 18, 2023 · 0 comments · Fixed by #286

Comments

@scagood
Copy link

scagood commented Dec 18, 2023

When changing from ~2.10.0 (resolved as 2.10.0) to ~2.11.0 (resolved as 2.11.1)
image

I am getting the following error when running using pnpm:

Error: Cannot find module 'espree'
Require stack:
- /home/runner/node_modules/.store/eslint-plugin-jsonc-virtual-f2fb243113/node_modules/eslint-plugin-jsonc/dist/utils/eslint-ast-utils.js
- /home/runner/node_modules/.store/eslint-plugin-jsonc-virtual-f2fb243113/node_modules/eslint-plugin-jsonc/dist/rules/array-bracket-newline.js
- /home/runner/node_modules/.store/eslint-plugin-jsonc-virtual-f2fb243113/node_modules/eslint-plugin-jsonc/dist/utils/rules.js
- /home/runner/node_modules/.store/eslint-plugin-jsonc-virtual-f2fb243113/node_modules/eslint-plugin-jsonc/dist/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/home/runner/node_modules/.store/eslint-plugin-jsonc-virtual-f2fb243113/node_modules/eslint-plugin-jsonc/dist/utils/eslint-ast-utils.js:5:18)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)

I think we need to add espree into the dependencies, or into the peerDependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant