Azure-Samples / Azure-Samples/adaptive-rag-workbench

azd up fails due to unresolved module aliases like '@/lib/utils' in frontend

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.