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

No import autocomplete suggestion for styled #3312

Open
blessedkiddo opened this issue Feb 15, 2025 · 0 comments
Open

No import autocomplete suggestion for styled #3312

blessedkiddo opened this issue Feb 15, 2025 · 0 comments

Comments

@blessedkiddo
Copy link

blessedkiddo commented Feb 15, 2025

Current behavior:
While start typing styled there is no suggestion for

import styled from '@emotion/styled'

Image

Expected behavior:
While start typing styled there is suggestion for

import styled from '@emotion/styled'

like it works in styled-components:

Image

To reproduce:

  1. Start typing "styled" in your editor

Environment information:

  • react version: 19.0.0
  • @emotion/react version: 11.14.0
  • @emotion/styled version: 11.14.0

I guess you have to add something like that to your macro.d.ts:

export { styled as default, styled };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant