F
F
Fresko19912021-07-19 17:14:10
css
Fresko1991, 2021-07-19 17:14:10

The path to pictures in VSC has stopped getting out, what should I do?

60f5887255331448207359.jpeg
Some left paths are shown, and before there were paths to the file in the working folder
. It should be: /src/img/hero.png I

found the solution myself, you need to exit the folder using two dots: ../src

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
profesor08, 2021-07-20
@Fresko1991

The path must be relative to the file where this path is written. But it is necessary to prescribe this way only when you have a project builder and he will be able to resolve this path. Otherwise, you will have to accept and write absolute paths.

V
Vasya Bulka, 2021-07-19
@Anonymous24

In such cases, usually disable all extensions and test the problem, enable extensions one by one...
Save your settings.json in a separate document and try to work with it...

I
Igor Arkhipov, 2021-07-19
@IgorArkhipov

Also try to install Path Intellisense

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question