question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript autocomplete broken with latest typescript version (4.4.2)

See original GitHub issue

Bug report

The autocomplete is broken for the styled function with typescript versions ^4.4.2 which is the latest stable version.

To Reproduce

  1. Create a new react app with typescript
npx create-react-app --template typescript
  1. Add stitches to dependencies
npm i @stitches/react
  1. Import stitches with
import { styled } from '@stitches/react'
  1. Try invoking autocomplete for css attributes.

Expected behavior

All css attributes should be shown in autocomplete menu

Screenshots

with TS compiler version 4.4.2 image

with TS version 4.3.5 (from stitches repo package.json file) image

System information

  • OS: macOS Big Sur 11.4 on M1 Macbook Pro
  • Version of Stitches: 1.0.0
  • Version of Node.js: v16.5.0

Additional context

  • VSCode version: 1.60.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
peduartecommented, Sep 9, 2021

Hi! This has been released to Stitches v1.1.0

yarn add @stitches/react@latest
# or
npm install @stitches/react@latest
0reactions
dhushyanth-scommented, Sep 9, 2021

Wow that was quick!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript autocomplete broken with latest typescript version ...
The autocomplete is broken for the styled function with typescript versions ^4.4.2 which is the latest stable version.
Read more >
[VS2022] [intellisense] Typescript autocomplete not working ...
I hadn't this problem with VS2019 (16.11.5) and the problem does not happens with C# code, only with typescript (4.4). Visual Studio ...
Read more >
TypeScript version mismatch in Visual Studio 2022
A solution I found and hope it's working for you. First, run Visual Studio installer and click "Modify" on your version (sorry the ......
Read more >
Documentation - TypeScript 4.3
In recent versions, TypeScript introduced a new type construct: template string types. These are types that either construct new string-like types by ...
Read more >
Announcing TypeScript 4.5 - Microsoft Developer Blogs
TypeScript 4.5 introduces a new utility type called the Awaited type. This type is meant to model operations like await in async functions, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found