Skip to content

"Debug Failure. False expression: Output generation failed" #5

Open

Description

@cjthompson

If the source files include any type declaration files, like src/@types/my-modules/index.d.ts, the result is:

[15:08:25] Starting scripts
[15:08:25] scripts failed because Debug Failure. False expression: Output generation failed
[15:08:25] Task chain was aborted!

It took a while to figure this out. If I change the code to:

yield fly.source(['src/**/*.ts', '!src/@types/**/*']).typescript().target('dist');

then it will work.

Activity

  1. lukeed commented on May 26, 2017

    @lukeed
    Contributor

    Hi there!

    I don't actually use TypeScript, but it seems like you needed to pass in the types option. Can you try this & let me know?

  2. cjthompson commented on May 26, 2017

    @cjthompson
    ContributorAuthor

    Actually, the problem is trying to compile type declaration files. Probably enough to just tweak the example to yield fly.source(['src/**/*.ts', '!src/**/*.d.ts']).

  3. lukeed commented on May 26, 2017

    @lukeed
    Contributor

    Ah, okay. I assumed that once given a types key, the compiler would have ignored them all internally.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions