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
Right now if user hasn't specified entryFile in ng-package.json of secondary entry point enforce-module-boundaries throws an error:
Oops! Something went wrong! :(
ESLint: 8.57.0
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
Occurred while linting
Rule: "@nrwl/nx/enforce-module-boundaries"
at Object.join (node:path:433:7)
at joinPathFragments (C:\dev\app-3\node_modules\nx\src\utils\path.js:22:31)
at getAngularEntryPoint (C:\dev\app-3\node_modules\@nx\eslint-plugin\src\utils\runtime-lint-utils.js:348:51)
at belongsToDifferentNgEntryPoint (C:\dev\app-3\node_modules\@nx\eslint-plugin\src\utils\runtime-lint-utils.js:333:30)
at run (C:\dev\app-3\node_modules\@nx\eslint-plugin\src\rules\enforce-module-boundaries.js:228:78)
at ImportDeclaration (C:\dev\app-3\node_modules\@nx\eslint-plugin\src\rules\enforce-module-boundaries.js:467:17)
at ruleErrorHandler (C:\dev\app-3\node_modules\eslint\lib\linter\linter.js:1076:28)
at C:\dev\app-3\node_modules\eslint\lib\linter\safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (C:\dev\app-3\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
Current Behavior
Right now if user hasn't specified entryFile in ng-package.json of secondary entry point
enforce-module-boundaries
throws an error:Expected Behavior
According to https://github.com/ng-packagr/ng-packagr/blob/main/docs/secondary-entrypoints.md the contents of
my_package/testing/ng-package.json
can be as simple as:and ng-packagr will assume that it is
src/public_api.ts
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: