Huy Nguyen
Huy Nguyen

Reputation: 591

Trouble with auto import React component when using vscode 1.28

Recently I don't know why auto import suggestion doesn't work as it used to. For example I want to auto import component, as I hit enter when the suggestion list appears, it only show this:

<import('./components/CourseList').CourseList

instead of <CourseList /> and import line

EDIT: after reinstall VSC 1.26 it works again but it doesn't work on 1.28

Upvotes: 2

Views: 3079

Answers (1)

Matt Bierner
Matt Bierner

Reputation: 65593

You are running into this bug. It should be fixed early next week by VS Code 1.28.1.

As a workaround, upgrade the version of typescript that VS Code uses by following these instructions

Upvotes: 1

Related Questions