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
I created a project with the latest version of NX and built a library inside it. When I try to build the library, the following error is displayed.
> NX require() of ES Module C:\projects\my-nx\node_modules\find-cache-dir\index.js from C:\projects\my-nx\node_modules\@nx\angular\src\executors\package\ng-packagr-adjustments\ng-package\options.di.js not supported.
This error was related to changing the import structure of the find-cache-dir package, and when I installed version 3.3.2, the problem was solved.
Expected Behavior
Apparently, the nx v 16.5.0 is not compatible with the latest version of find-cache-dir
GitHub Repo
No response
Steps to Reproduce
1.npx create-nx-workspace@latest
2.nx g @nx/angular:library my-lib --publishable --import-path=@my-org/my-lib
3.nx build my-lib
4. NX require() of ES Module C:\projects\my-nx\node_modules\find-cache-dir\index.js from C:\projects\my-nx\node_modules@nx\angular\src\executors\package\ng-packagr-adjustments\ng-package\options.di.js not supported.
NX require() of ES Module C:\projects\my-nx\node_modules\find-cache-dir\index.js from C:\projects\my-nx\node_modules\@nx\angular\src\executors\package\ng-packagr-adjustments\ng-package\options.di.js not supported.
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
alisafariir
changed the title
find-cache-dir v 4.0.0 is not compatible nx 16.5.0
find-cache-dir version 4.0.0 is not compatible nx version 16.5.0
Jul 10, 2023
This was fixed by #18049 and it should be part of a release soon. Please keep an eye on the releases to get the fix. In the meantime, if you need a workaround urgently, you can add find-cache-dir to your package.json with version ^3.3.2.
Current Behavior
I created a project with the latest version of NX and built a library inside it. When I try to build the library, the following error is displayed.
This error was related to changing the import structure of the find-cache-dir package, and when I installed version 3.3.2, the problem was solved.
Expected Behavior
Apparently, the nx v 16.5.0 is not compatible with the latest version of find-cache-dir
GitHub Repo
No response
Steps to Reproduce
1.npx create-nx-workspace@latest
2.nx g @nx/angular:library my-lib --publishable --import-path=@my-org/my-lib
3.nx build my-lib
4. NX require() of ES Module C:\projects\my-nx\node_modules\find-cache-dir\index.js from C:\projects\my-nx\node_modules@nx\angular\src\executors\package\ng-packagr-adjustments\ng-package\options.di.js not supported.
Nx Report
Failure Logs
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: