Skip to content

Watching broken in TypeScript 4.1.2 and newer (including latest version 5.x+) #478

Description

@benmccann

Overview

This regression is almost certainly caused by #352. That's the only real commit in 4.1.2 and things work with 4.1.1. Furthermore that puts createWatchProgram in an if statement.

This issue has been reported by a few different users of the Sapper web framework (also created by Rich Harris) over the past few days sveltejs/sapper#1293

Environment

  • Rollup Plugin Name: @rollup/plugin-typescript
  • Rollup Plugin Version: 4.1.2
  • Rollup Version: 2.18.0
  • Operating System (or Browser): Ubuntu
  • Node Version: v12.16.3

How Do We Reproduce?

Reproduction repo

Steps:

  1. Clone and install
  2. Run npm run dev
  3. Make a GET request, such as by visiting in the browser, /fails and see the result 1
  4. Modify src/routes/fails.ts and change 1 to 2. The change will be picked up and "rebuild"
  5. Do 3 again but still see 1 instead of the new 2

Expected Behavior

The page should change

Actual Behavior

The page doesn't change

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions