#tsconfig.json 'moduleResolution' error with 'node' option.

7 messages · Page 1 of 1 (latest)

narrow adder
#

i'm updating my packages from a year ago since I initialised my project. The underlined error asked me to change to "node16" and still has the underline red error occuring. I'm not sure what answer it could be looking for or this option moduleResolution is obsolete and I should just erase it from the line.

I am referred to this link for further description: https://www.typescriptlang.org/tsconfig/#moduleResolution

p.s. I'm using typescript with React and webpack.

narrow adder
#

I assume these options are okay since I am using modern javascript syntax and using webpack?

jovial sky
#

@narrow adder You set moduleResolution: "node16" and it's still complaining about node10?

#

But yeah, if you're using a bundler like webpack then moduleResolution: "bundler" and module: "esnext" make sense.

narrow adder
narrow adder
cobalt cape