Closed Nick-Mazuk closed 1 year ago
The paths that you are using look a little non-standard. I think this may be an issue with tsconfig-paths not resolving the path correctly.
I'll try to make a reproduction and open an issue for that, but on our side this is working properly when using paths that look like package.json names.
FWIW I'm also experiencing the same issue but am using more standard path names (e.g. @project/libname)
@Ghirigoro Similar to this #9596 ?
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
If you import a library into an executor and that library's import statement uses a tsconfig.path rewrite, the file is not found.
The tsconfig.path is likely setup correctly because intellisense works in VS Code, and I've used this same setup outside of nx and it's worked correctly.
Expected Behavior
I should be able import a library using a tsconfig.path import into an executor and it should just work.
Steps to Reproduce
Here's a minimal reproduction: https://github.com/Nick-Mazuk/nx-test-test
To view the error, do the following:
npm i
nx test b
Failure Logs
Environment