[Error - 11:19:21] An unexpected error occurred:
[Error - 11:19:21] Error: ENOENT: no such file or directory, open '/Users/lester/Documents/Menusifu/cloud-pos-front/libs/widget/src/base/date-picker/index.ts'
Occurred while linting /Users/lester/Documents/Menusifu/cloud-pos-front/libs/widget/src/gift-card/components/base-card/index.tsx:4
Rule: "@nx/enforce-module-boundaries"
at readFileSync (node:fs:448:20)
at t.readFileSync (node:electron/js2c/node_init:2:9900)
at hasMemberExport (/Users/lester/Documents/Menusifu/cloud-pos-front/node_modules/.pnpm/@nx+eslint-plugin@19.4.3_@babel+traverse@7.23.9_@swc-node+register@1.9.2_@swc+core@1.5.29_@sw_r6cnujfukzoba4w7fqzwdebsdu/node_modules/@nx/eslint-plugin/src/utils/ast-utils.js:75:47)
at getRelativeImportPath (/Users/lester/Documents/Menusifu/cloud-pos-front/node_modules/.pnpm/@nx+eslint-plugin@19.4.3_@babel+traverse@7.23.9_@swc-node+register@1.9.2_@swc+core@1.5.29_@sw_r6cnujfukzoba4w7fqzwdebsdu/node_modules/@nx/eslint-plugin/src/utils/ast-utils.js:210:17)
at Object.fix (/Users/lester/Documents/Menusifu/cloud-pos-front/node_modules/.pnpm/@nx+eslint-plugin@19.4.3_@babel+traverse@7.23.9_@swc-node+register@1.9.2_@swc+core@1.5.29_@sw_r6cnujfukzoba4w7fqzwdebsdu/node_modules/@nx/eslint-plugin/src/rules/enforce-module-boundaries.js:265:98)
at normalizeFixes (/Users/lester/Documents/Menusifu/cloud-pos-front/node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/report-translator.js:194:28)
at /Users/lester/Documents/Menusifu/cloud-pos-front/node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/report-translator.js:365:49
at Object.report (/Users/lester/Documents/Menusifu/cloud-pos-front/node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/linter.js:1047:41)
at run (/Users/lester/Documents/Menusifu/cloud-pos-front/node_modules/.pnpm/@nx+eslint-plugin@19.4.3_@babel+traverse@7.23.9_@swc-node+register@1.9.2_@swc+core@1.5.29_@sw_r6cnujfukzoba4w7fqzwdebsdu/node_modules/@nx/eslint-plugin/src/rules/enforce-module-boundaries.js:243:29)
at ImportDeclaration (/Users/lester/Documents/Menusifu/cloud-pos-front/node_modules/.pnpm/@nx+eslint-plugin@19.4.3_@babel+traverse@7.23.9_@swc-node+register@1.9.2_@swc+core@1.5.29_@sw_r6cnujfukzoba4w7fqzwdebsdu/node_modules/@nx/eslint-plugin/src/rules/enforce-module-boundaries.js:481:17)
Current Behavior
eslint . --fix
meet a error which is caused by Rule: "@nx/enforce-module-boundaries"Expected Behavior
eslint . --fix
can execute successGitHub Repo
No response
Steps to Reproduce
1.in a tsx,use
import { DatePicker } from '@pos/widget'
,DatePicker is a tsx and not as tseslint . --fix
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response