Skip to content

How to use this with typescript path alias #78

@CommanderRedYT

Description

@CommanderRedYT

In my whole project I am using a path alias.

{
  "compilerOptions": {
    ...

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

The problem is that I cannot get it to work, it always fails with this:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@/foo' imported from /repo/bar.ts

I cannot remove the alias unfortunately...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions