Open MrErHu opened 1 week ago
The problem may occur in
targetProject =
targetProject ||
findProjectUsingImport(
projectGraph,
targetProjectLocator,
sourceFilePath,
imp
);
targetProject
is undefined。
Current Behavior
In my project, I use the enforce-module-boundaries plugin to standardize the code。 The node version is 18.20.3, npm version is 10.7.0。 Other third-party package versions are as follows:
project directory structure is as follows:
package.json(package/a)
package.json(package/b)
.eslintrc.js
project root package.json
packages/b/src/index.ts
Under normal circumstances, running command
npm run lint
andnpm run lint:global
should have the same effect.However, running npm run lint:global can detect errors:
running npm run lint can‘t detect errors:
This is my project url: https://github.com/MrErHu/nx-plugin-ts-demo
Expected Behavior
The plugin can detect errors normally
GitHub Repo
nx-plugin-ts-demo
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response