Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

moduleResolution

notPlancha answered on July 2, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


moduleResolution

0

There are two possible module resolution strategies: Node and Classic. You can use the moduleResolution option to specify the module resolution strategy. If not specified, the default is Node for --module commonjs, and Classic otherwise (including when module is set to amd, system, umd, es2015, esnext, etc.).

Node module resolution is the most-commonly used in the TypeScript community and is recommended for most projects. If you are having resolution problems with imports and exports in TypeScript, try setting moduleResolution: "node" to see if it fixes the issue. 

# Classic

This used to be TypeScript’s default resolution strategy. Nowadays, this strategy is mainly present for backward compatibility. 

# Node

This resolution strategy attempts to mimic the Node.js module resolution mechanism at runtime. The full Node.js resolution algorithm is outlined in Node.js module documentation. 

Popularity 1/10 Helpfulness 1/10 Language whatever
Tags: whatever
Link to this answer
Share Copy Link
Contributed on Jul 02 2023
notPlancha
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.