angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

tsconfig paths warn

Open repertory opened this issue 9 years ago • 7 comments

tim 20171103143345

repertory avatar Nov 03 '17 06:11 repertory

Unfortunately one cannot see the tree on the left hand side. Assuming your shared module is app/shared/shared.module.ts: have you tried replacing the tilde (~) in your import statement by two dots (..)?

csentis avatar Nov 03 '17 19:11 csentis

Your IDE is most likely only reading and using the top level tsconfig.json. Try adding your path mapping configuration to that file instead.

clydin avatar Nov 03 '17 23:11 clydin

default

repertory avatar Nov 04 '17 00:11 repertory

That helps. You might be missing a baseUrl In your tsconfig.json as paths are computed relative to baseUrl. See also TypeScript’s handbook entry on baseUrl.

csentis avatar Nov 04 '17 08:11 csentis

@csentis Thank you very much!

repertory avatar Nov 04 '17 08:11 repertory

You’re welcome! Remember to close if solved ;-)

csentis avatar Nov 04 '17 10:11 csentis

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.