Skip to main content

MODULE_RESOLUTION_MODE_MISMATCH

Constant MODULE_RESOLUTION_MODE_MISMATCH 

Source
pub const MODULE_RESOLUTION_MODE_MISMATCH: u32 = 2792;
Expand description

TS2792: Cannot find module. Did you mean to set the ‘moduleResolution’ option to ‘nodenext’?

This error code is emitted when a module specifier cannot be resolved under the current module resolution mode, but the package.json has an ‘exports’ field that would likely resolve correctly under Node16/NodeNext/Bundler mode.