vspcontact

Prettier adds the word "value" to imports in TypeScript

TLDR: Restart VSCode extensions with "Restart Extension Host"

Solution: Restart VSCode extensions with CMD + shift + P and search for "Restart Extension Host".

After saving a file prettier automatically formats the file for me.

Today, for the first time ever, after trying to do a normal import, the word "value" was added inside the import.

import { value getAllTags } from "@/lib/tags"

instead of the expected

import { getAllTags } from "@/lib/tags"

I did the trick above and it fixed everything.

Nov 17, 2022
bugs