Skip to content

Typescript version 2.1.0-dev.20161025 has require regression #11834

Closed

Description

Hi,

I'm a maintainer of ts-loader for Webpack. We've just noticed that out simpleDependency test has started failing consistently on Windows and Linux

TypeScript Version: 2.0.3 / nightly (2.1.0-dev.20161025)

Code

Take a look here for the PR on which I noticed the issue: TypeStrong/ts-loader#337

And look here for the Karma test that demostrates the issue: https://github.com/TypeStrong/ts-loader/tree/master/test/execution-tests/simpleDependency

Expected behavior:

Test passes with TypeScript@latest (as with TS 1.6 - 2.0)

Actual behavior:

Test fails with TypeScript@latest (despite passing for other versions of TS)

Activity

  1. mhegazy commented on Oct 25, 2016

    @mhegazy
    Contributor

    In https://github.com/TypeStrong/ts-loader/blob/master/test/execution-tests/simpleDependency/tsconfig.json#L4 the files list is empty. this means no files are consumed by the compiler.

    In past versions the compiler silently finished with a non-error return code (as there is no work to be done). This has been confusing to users who wounder why output files were not generated (see #11621 and #11156).

    In #11743 we made this an error, so that users are aware that the compilation they ran was a no op.

  2. johnnyreilly commented on Oct 25, 2016

    @johnnyreilly
    Author

    Ah - I see. Thanks. I'll fix up our test pack to cater for that. I've just realised that this creates a small problem for ts-loader with regards our instance test. i.e. ts-loader was relying on the noop to not error. Now it will; I think we already have an issue raised around this:

    TypeStrong/ts-loader#268

    and possibly related:

    TypeStrong/ts-loader#267

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

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions