Skip to content

how to enable @ import path #894

Closed
Closed

Description

@chyroc

project:

- src
  - src/api/index.ts
  - src/components/SomeComponent/index.tsx
  - src/command.tsx

i want to import SomeComponent with code: import SomeComponent from '@/components/SomeComponent' not import SomeComponent from './components/SomeComponent'

how to enable this?

Activity

  1. added
    api
    feature request
    on Feb 14, 2022
  2. mattisssa commented on Feb 14, 2022

    @mattisssa
    Contributor

    Can you guys help with this question?

    / cc @mathieudutour @sxn @dai-shi

  3. unnamedd commented on Feb 15, 2022

    @unnamedd
    Contributor
  4. added a commit that references this issue on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apifeature request

    Type

    No type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions