Skip to content

node_modules in parent directories are ignored #5381

Closed

Description

@kenotron

For an example, given a Foo and Bar project laid out like this:

Foo/
  node_modules/
    Bar/...
  src/
    a.ts
  dist/
    a.js
    a.d.ts

Bar/
  node_modules/
  src/
    b.ts
  dist/
    b.js
    b.d.ts

Whereas Foo depends on Bar. and Bar is already npm linked as above, if I had a.ts referencing something from b.ts like this:

import * as b from 'Bar/dist/b';

It would NOT find it. This works fine if b.ts and a.ts were one level up, so it's next to node_modules.

Activity

  1. vladima commented on Oct 23, 2015

    @vladima
    Contributor

    I was able to repro it, this is dupe of #5102 and is fixed in #5275

  2. locked and limited conversation to collaborators on Jun 19, 2018
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

    BugA bug in TypeScriptDuplicateAn 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