Skip to content

1029 nightly broken #5455

Closed
Closed

Description

Getting cannot find module errors for my entire app. 1027 nightly is fine.

Activity

  1. mhegazy commented on Oct 29, 2015

    @mhegazy
    Contributor

    can you share more information?

  2. mhegazy commented on Oct 29, 2015

    @mhegazy
    Contributor

    are you using typescript through an extension to webpack, gulp, gurnt, browserify, etc..

  3. ghost closed this as completedon Oct 29, 2015
  4. ivogabe commented on Nov 3, 2015

    @ivogabe
    Contributor

    Mohamed Hegazy (@mhegazy) Vladimir Matveev (@vladima) It looks like #5462 has reverted this behavior, is that right?

  5. vladima commented on Nov 3, 2015

    @vladima
    Contributor

    Ivo Gabe de Wolff (@ivogabe) yes, now we'll use whatever host has returned to us as resolvedFileName. However in general host should be able to handle correct paths no matter in what form they are represented (whether they are relative to current directory or absolute) without making any assumptions. There are few reasons for this:

    • compiler can choose different representation to store files internally as long as it is correct (store absolute paths vs. store paths that are relative to current directory)
    • the order in which compiler processes files is implementation-specific. This means that for files below following events might happen in different order in different versions of the compiler
      ts // a.ts import x from "b" ...
    // b.ts
    export default class {...}
    1. compiler asks host to get source file a.ts (from the command line)
    2. compiler asks host to get source file b.ts (from the command line)
    3. compiler asks host to resolve module name b relative to containing file a.ts
    4. compiler asks host to get source file .../b.ts (result of module resolution, can be absolute path if host returns such).

    Currently we do natural depth first traversal so the order of events is 1, 3, 4 (we skip 2 since at the point when we start processing second item in the list of root files we discover that this file was already processed ). However it is possible that at some point we might change the implementation and order will be: 1, 2, 3 - process root files first and then start resolving module names. In this case we skip 4 since we already have this file.

  6. 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

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions