Skip to content

[@web/dev-server-rollup]: #2964

Open
Open

Description

@jarrodek

Today I started getting the following error when running my tests:

 Could not resolve the path '[path to the repo]/noop' with the extensions: '.ts', '.tsx', '.d.ts', '.js', '.jsx', '.cts', '.d.cts', '.cjs', '.mts', '.d.mts', '.mjs'.

This is unexpected and I didn't touch configuration of my tests. Cursor analyzed the output and deducted the the problem is with the following line:

Cursor explanation:

The error was occurring because the @web/dev-server-rollup package (version 0.6.4) has a hardcoded configuration that sets input: 'noop' in its createRollupPluginContexts.ts file. This causes Rollup to try to resolve a file called "noop" which doesn't exist in your project, leading to the TypeScript compilation error: [the error above]

As a solution Cursor suggested to create a dummy file noop.ts at the root of the project with content export default {}. After that, tests started working again. But I wonder why this happened in the first place? The package changed a year ago and this should not happen.

Activity

  1. bashmish commented on Jun 19, 2025

    @bashmish
    Member

    Can you please make a small reproduction and publish it on GitHub?

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