# Bug Report <!-- Please fill in each section completely. Thank you! --> ### π Search Terms <!-- What search terms did you use when trying to find an existing bug report? List them here so people in the future can find this one more easily. --> - `forceConsistentCasingInFileNames` - `node_modules` ### π Version & Regression Information <!-- When did you start seeing this bug occur? "Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs If possible, please try testing the nightly version of TS to see if it's already been fixed. For npm: `typescript@next` This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly Note: The TypeScript Playground can be used to try older versions of TypeScript. Please keep and fill in the line that best applies: --> - 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`: ```ts export const foo = 1; ``` <!-- Please post the relevant code sample here as well--> ```ts // 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.