S
S
SirAlejandro2019-01-03 10:08:13
typescript
SirAlejandro, 2019-01-03 10:08:13

Why doesn't path from tsconfig.json work?

I am setting up an environment for working with expressjs. I registered the paths I needed in the path: field
5c2db3608ba0d543281412.png.
Webstorm IDE pulled up the config changes and instead of different ../../app/Http/Controllers/something.controller and the like suggested a short alias
5c2db427170ae049293762.png
But when the project starts, errors appear in the console like:
5c2db48327e8f614428830.png
Help me figure out what I did wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2019-01-03
@vitali1995

I think, because you registered taipings, but forgot to add aliases. Typing "deceives" the compiler and tells you where to pull the type declaration from. But after compilation, js does not understand where such a module came from. This is how you can create a link in the node_modules folder: https://ru.wikipedia.org/wiki/Ln_(Unix)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question