- What is Mono Repo?
- Typescript configurations
- How to write Typescript
- ESLint Integration
- Swagger Integration
- Application Deployment on Kubernetes
- Troubleshooting
Note: jest ts-jest and @types/jest ts-jest configinit
There are some situations may cause this issue:
Moduleis not defined incompilerOptions.pathsintsconfig.jsonSolution:
Assume the name of module is
@utilsand the path of workspace is atworkspaces/utils{ "compilerOptions": { ..., "paths": { "@utils/*": "workspaces/utils/src/*" } } }- Path of
Moduleis not defined correspondently incompilerOptions.pathsintsconfig.jsonSolution:
If the script would like to use complied module of
@utilsin theworkspaces/utils/dist. The path should be:{ "compilerOptions": { ..., "paths": { "@utils/*": "workspaces/utils/dist/*" } } }This approach may not resolve this problem while the
workspaces/utils/distdoes not exist. In this case, use source directory would be the better solution as follows:{ "compilerOptions": { ..., "paths": { "@utils/*": "workspaces/utils/src/*" } } } - The directory of script or the script has been excluded in
tsconfig.json.Solution:
Remove the directory from
excludeattribute.