Skip to content

Custom tsconfig.json generates an exception #409

@martindotpy

Description

@martindotpy

When adding a custom tsconfig.json to the project, Quarkus fails to start in dev mode with a Duplicate key exception.

The issue appears when a tsconfig.json file is placed under src/main/resources/web.

Steps to reproduce

  1. Add a custom tsconfig.json under: src/main/resources/web/tsconfig.json
  2. Start Quarkus in dev mode.
  3. The application fails during startup with the following exception. Exception
2026-03-11 00:44:22,682 ERROR [io.quarkus.deployment.dev.IsolatedDevModeMain] (main) Failed to start quarkus: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkiverse.web.bundler.deployment.DevWatcherProcessor#startWatch threw an exception: java.lang.IllegalStateException: Duplicate key src/main/resources/web/tsconfig.json (attempted merging values Link[target=target/web-bundler/dev/tsconfig.json, symbolic=true] and Link[target=target/web-bundler/dev/web/tsconfig.json, symbolic=true])

Expected behavior

Quarkus dev mode should start normally when a custom tsconfig.json is present in src/main/resources/web.

Actual behavior

Startup fails with a Duplicate key exception coming from DevWatcherProcessor#startWatch.

Additional context

The project is also integrating the Tailwind and Svelte plugins. The same issue occurs on both Windows and macOS environments.

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