Skip to content

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

Open
@swigerb

Description

@swigerb

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:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"]
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions