- 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:
Module
is not defined incompilerOptions
.paths
intsconfig.json
Solution:
Assume the name of module is
@utils
and the path of workspace is atworkspaces/utils
{ "compilerOptions": { ..., "paths": { "@utils/*": "workspaces/utils/src/*" } } }
- Path of
Module
is not defined correspondently incompilerOptions
.paths
intsconfig.json
Solution:
If the script would like to use complied module of
@utils
in theworkspaces/utils/dist
. The path should be:{ "compilerOptions": { ..., "paths": { "@utils/*": "workspaces/utils/dist/*" } } }
This approach may not resolve this problem while the
workspaces/utils/dist
does 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
exclude
attribute.