eslint-plugin-import-x icon indicating copy to clipboard operation
eslint-plugin-import-x copied to clipboard

Error: Cannot find module 'tslib'

Open wojtekmaj opened this issue 2 months ago • 4 comments

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.

wojtekmaj avatar Apr 17 '24 11:04 wojtekmaj