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
Problem: When using eslint-config-widen on an SDK project, I would like to use only the components (and install dependencies) that are relevant to the project. Currently, if I attempt to use only the base, jest, and typescript components without installing the front-end dependencies, ESLint will give this error:
Oops! Something went wrong! :(
ESLint: 9.15.0
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'eslint-plugin-jsx-a11y' imported from /Users/jacob.williamson/Documents/acquia-dam-api-sdk/node_modules/eslint-config-widen/lib/react.js
at packageResolve (node:internal/modules/esm/resolve:841:9)
at moduleResolve (node:internal/modules/esm/resolve:914:18)
at defaultResolve (node:internal/modules/esm/resolve:1119:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:542:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:511:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:241:38)
at ModuleJob._link (node:internal/modules/esm/module_job:126:49)
This error is reproduced for all peer dependencies listed as 'optional'
Problem: When using eslint-config-widen on an SDK project, I would like to use only the components (and install dependencies) that are relevant to the project. Currently, if I attempt to use only the base, jest, and typescript components without installing the front-end dependencies, ESLint will give this error:
This error is reproduced for all peer dependencies listed as 'optional'
For reference, my eslint.config.js is:
The text was updated successfully, but these errors were encountered: