Error: Failed to load plugin '@typescript-eslint' declared in '--config » plugin:@wordpress/recommended': Cannot find module 'typescript' #29940
Labels
[Tool] ESLint plugin
/packages/eslint-plugin
[Tool] WP Scripts
/packages/scripts
[Type] Bug
An existing feature does not function as intended
Description
Using
@wordpress/[email protected]
andwp-scripts lint-js
is currently failing to lint JavaScript files becausetypescript
is missing as a dependency.Step-by-step reproduction instructions
package.json
index.js
npx wp-scripts lint-js index.js
Expected behaviour
File is linted without errors.
Actual behaviour
I'm using node v14.15.4 with npm 6.14.11.
Probably introduced by #27143.
The text was updated successfully, but these errors were encountered: