Skip to content

forceConsistentCasingInFileNames doesn't work for modules in node_modulesย #49470

@OliverJAsh

Description

@OliverJAsh

Bug Report

๐Ÿ”Ž Search Terms

  • forceConsistentCasingInFileNames
  • node_modules

๐Ÿ•— Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about forceConsistentCasingInFileNames

โฏ Playground Link

Not availableโ€”requires node_modules folder

๐Ÿ’ป Code

With forceConsistentCasingInFileNames enabled and fp-ts installed in node_modules:

src/struct.d.ts:

export const foo = 1;
// Expected error, but got none โŒ
import * as xs1 from "fp-ts/lib/Struct";
// Expected error, but got none โŒ
import * as xs2 from "fp-ts/lib/struct";
// Error as expected โœ…
import * as xs3 from "./Struct";
// Error as expected โœ…
import * as xs4 from "./struct";

๐Ÿ™ Actual behavior

See code comments above.

๐Ÿ™‚ Expected behavior

See code comments above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions