Skip to content

auto import broken that import as a relative path #25186

Closed

Description

@Kingwl

TypeScript Version: 3.0.0-dev.201xxxxx

Search Terms:
import, auto import
Code

// node_module/xxx/lib/index.d.ts
export declare a: number;

// src/a.ts
a/*here*/

Expected behavior:
insert the code: import { a } from 'xxx'
Actual behavior:
insert the code: import { a } from 'node_module/xxx/lib'

Related Issues:

seems by #24742

Activity

  1. Kingwl commented on Jun 25, 2018

    @Kingwl
    ContributorAuthor
  2. Kingwl commented on Jun 26, 2018

    @Kingwl
    ContributorAuthor

    1
    2

    current behavior in my pc,
    the test may be delayed, because my deadline(this week) is still coming😂

  3. ghost closed this as completedon Jul 3, 2018
  4. ghost removed
    Needs More InfoThe issue still hasn't been fully clarified
    on Jul 3, 2018
  5. ghost added
    DuplicateAn existing issue was already created
    on Jul 3, 2018
  6. locked as resolved and limited conversation to collaborators on Oct 21, 2025
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

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions