nextui: Token autocompletion not working on utils [CodeSandbox]

Describe the bug Autocomplete does not seem to work for utils right now. Inside of css() the utils are not even defined as a prop, they are only there if you create a media query with css({"bp1": {"pt": ...}}).

Steps to reproduce

  1. Use the css() or styled() function
  2. Don’t get any autocompletion for utils

I’ve created a CodeSandbox here: https://codesandbox.io/s/distracted-rain-s63rmp?file=/src/App.tsx

Expected behaviour I would expect to get suggestions of the available tokens.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Hey @WonderPanda I’m glad you want to use NextUI, the IntelliSense problems on CodeSandbox are caused due to is not possible to set a custom Typescript version at least up to now codesandbox/codesandbox-client#942, and Stitches has a problem with the latest Typescript version (which is used by CodeSandbox) modulz/stitches#947 (comment), we hope they fix that issue soon in order to have IntelliSense also on CodeSanbox, btw if you use VsCode you will not have this issue at all so you can try out NextUI without problem 👍🏻

Thanks for super quick response! I’ll try things out in VsCode