Azure-Samples / Azure-Samples/adaptive-rag-workbench
azd up fails due to unresolved module aliases like '@/lib/utils' in frontend
Open
- Dominant language
- Python
- Stars
- 54
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
When running `azd up`, the frontend build step fails with errors like:
error TS2307: Cannot find module '@/lib/utils' or its corresponding type declarations.
This seems to be due to missing or incorrect `paths` configuration in `tsconfig.json`. To fix this, adding the following to `frontend/tsconfig.json` under `compilerOptions` resolves the issue:
```json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.