Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with moduleResolution: "Bundler" #1160

Open
OnkelTem opened this issue Dec 27, 2023 · 0 comments
Open

Not compatible with moduleResolution: "Bundler" #1160

OnkelTem opened this issue Dec 27, 2023 · 0 comments

Comments

@OnkelTem
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant