Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning message should be displayed in case of misconfigured "tsconfig.json" #6

Closed
mnasyrov opened this issue Mar 15, 2017 · 1 comment

Comments

@mnasyrov
Copy link

Currently tsconfig-paths fails in case tsconfig.json does not declared "paths" settings.
It will be better to display a meaningful warning or error message instead.

Jontem pushed a commit that referenced this issue Mar 18, 2017
@Jontem
Copy link
Collaborator

Jontem commented Mar 18, 2017

I've implemented it as warning message in version 2.1.2.

If tsconfig.json or paths in compilerOptions is missing it will show a warning message and will not patch Module._load. So it would work as ts-node without tsconfig-paths.

But if baseUrl is missing from compilerOptions we will also show a warning message but typescript itself will throw an exception about missing the baseUrlproperty.

@Jontem Jontem closed this as completed Mar 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants