You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And inside of is-even/src/lib/is-even.ts I'm violating @nrwl/nx/enforce-module-boundaries eslint rule by importing from itself using non-relative path: import { isNumber } from '@myorg/is-even';
Now the rule doesn't work anymore and throws unrelated errors trying to read non-existing file, see logs below for error.
Expected Behavior
Rule doesn't throw error related to being unable to find a file, but rather warns about having to use relative imports.
~/nx-recipes/integrated$ nx report
> NX Report complete - copy this into the issue template
Node : 16.13.0
OS : linux x64
npm : 8.1.0
nx : 15.4.8
@nrwl/angular : Not Found
@nrwl/cypress : Not Found
@nrwl/detox : Not Found
@nrwl/devkit : 15.0.10
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.0.10
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.0.10
@nrwl/js : 15.0.10
@nrwl/linter : 15.0.10
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : 15.0.2
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/rollup : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : Not Found
@nrwl/webpack : Not Found
@nrwl/workspace : 15.0.10
@nrwl/vite : Not Found
typescript : 4.8.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins:
Failure Logs
~/nx-recipes/integrated$ nx run is-even:lint
> nx run is-even:lint
Linting "is-even"...
> NX ENOENT: no such file or directory, open '/home/maxim/nx-recipes/integrated/packages/is-even/src/lib/is-even.js/index.ts'
Occurred while linting /home/maxim/nx-recipes/integrated/packages/is-even/src/lib/is-even.ts:1
Rule: "@nrwl/nx/enforce-module-boundaries"
Pass --verbose to see the stacktrace.
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Ran target lint for project is-even (1s)
✖ 1/1 failed
✔ 0/1 succeeded [0 read from cache]
View structured, searchable error logs at https://cloud.nx.app/runs/O3W6N5z5O2
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
In my index.ts I import files using ESM-style with
.js
:And inside of
is-even/src/lib/is-even.ts
I'm violating@nrwl/nx/enforce-module-boundaries
eslint rule by importing from itself using non-relative path:import { isNumber } from '@myorg/is-even';
Now the rule doesn't work anymore and throws unrelated errors trying to read non-existing file, see logs below for error.
Expected Behavior
Rule doesn't throw error related to being unable to find a file, but rather warns about having to use relative imports.
GitHub Repo
https://github.com/Maxim-Mazurok/nx-recipes/tree/enforce-module-boundaries-repro/integrated
Steps to Reproduce
git clone https://github.com/Maxim-Mazurok/nx-recipes
cd nx-recipes
git switch enforce-module-boundaries-repro
cd integrated
npm ci
npm test
Nx Report
Failure Logs
Additional Information
No response
The text was updated successfully, but these errors were encountered: