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
When I removed barrel imports (index.ts) from tsconfig.base.json and replace it by asterisk I got errors Error: Module not found: Error: Can't resolve '@ng-mf/my-button/*' in
Error: Module not found: Error: Can't resolve '@ng-mf/my-button/*' in '...'
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
When barrel file is used (index.ts) in tsconfig.base.json like below: "paths": { ... "@ng-mf/my-button": ["libs/shared/my-button/src/index.ts"],
Everything works as expected
The text was updated successfully, but these errors were encountered:
Current Behavior
When I removed barrel imports (index.ts) from tsconfig.base.json and replace it by asterisk I got errors Error:
Module not found: Error: Can't resolve '@ng-mf/my-button/*' in
Expected Behavior
No errors when compiling without barrel imports
GitHub Repo
https://github.com/aswarcewicz/nx-ng-dyn-fed/blob/no-barrel-imports-tests/tsconfig.base.json
Steps to Reproduce
no-barrel-imports-tests
npx nx serve dashboard
Error: Module not found: Error: Can't resolve '@ng-mf/my-button/*' in '...'
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
When barrel file is used (index.ts) in tsconfig.base.json like below:
"paths": { ... "@ng-mf/my-button": ["libs/shared/my-button/src/index.ts"],
Everything works as expected
The text was updated successfully, but these errors were encountered: