Not compatible with `moduleResolution: "Bundler"` · Issue #1160 · stitchesjs/stitches · GitHub
Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Not compatible with moduleResolution: "Bundler" #1160

Open

Description

@OnkelTem

Bug report

Describe the bug

A library using stitches cannot utilize "moduleResolution": "Bundler"

It leads to TS error:

TS2742: The inferred type of Button cannot be named without a reference to
../node_modules/@stitches/react/types/css-util
. This is likely not portable. A type annotation is necessary.

To Reproduce

Repo: https://github.com/OnkelTem/_stitches-inferred

  1. npm i
  2. npm run build

Expected behavior

No error

System information

  • OS: Linux
  • Version of Stitches: 1.2.8
  • Version of Node.js: 20.7.0

Activity

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