Typescript: tsc moduleResolution default value `Classic`?

Created on 19 Aug 2016  路  5Comments  路  Source: microsoft/TypeScript

TypeScript Version: 2.0.0 / nightly (2.0.0-dev.201xxxxx)

In docs https://www.typescriptlang.org/docs/handbook/module-resolution.html it is said

There are two possible module resolution strategies: Node and Classic. You can use the --moduleResolution flag to specify the module resolution strategy. The default if not specified is Node.

But if I run tsc the output is:
Module resolution kind is not specified, using 'Classic'.

Docs

Most helpful comment

the documentation is not accurate. The way it is setup is default is node, unless --module == Sysmte | AMD.

All 5 comments

the documentation is not accurate. The way it is setup is default is node, unless --module == Sysmte | AMD.

right I had an "module": "amd"

Good to know! Because I felt that module resolution was a littble bit _random_ ^^

I hit the same issue today, a little over two months since this issue was first posted. Perhaps the documentation could be updated on this little detail?

Was this page helpful?
0 / 5 - 0 ratings