eslint-plugin-import-x
eslint-plugin-import-x copied to clipboard
Error: Cannot find module 'tslib'
It appears that the source code requires tslib
:
node_modules/eslint-plugin-import-x/lib/index.js
"use strict";
const tslib_1 = require("tslib");
const electron_1 = tslib_1.__importDefault(require("./config/electron"));
const errors_1 = tslib_1.__importDefault(require("./config/errors"));
const react_1 = tslib_1.__importDefault(require("./config/react"));
// …
but the package does not declare it in its dependencies. This causes the error if tslib has not been already installed by another package, and in Yarn PnP, unconditionally.