You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this project, ./src/di/binding.ts gets compiled to ./dist/di/Binding.{d.ts,js,js.map} (Notice the capitalized Binding.) When its siblings then `import { } from './binding' in dependent projects, TSC fails because that file isn't present.
What arcane things might I have done to cause this to compile that way?
this happens because src/di/di.ts imports this file as './Binding'. On case-insensitive file systems both ./Binding and ./binding refer to the same file and internally we just store the name that we met first.
NOTE #5275 adds a flag to force consistent naming on case-insensitive systems. If I use it to compile your example I get error TS1149: File name 'src/di/binding.ts' differs from already included file name 'src/di/Binding.ts' only in casing
Reacted by Olivier Tassinari, Kit Ko and Dhanraj Padmashali
Activity
vladima commentedon Oct 22, 2015
this happens because
src/di/di.tsimports this file as'./Binding'. On case-insensitive file systems both./Bindingand./bindingrefer to the same file and internally we just store the name that we met first.NOTE #5275 adds a flag to force consistent naming on case-insensitive systems. If I use it to compile your example I get
error TS1149: File name 'src/di/binding.ts' differs from already included file name 'src/di/Binding.ts' only in casingDavidSouther commentedon Oct 22, 2015
OMG I looked at that import like three times. Thanks :)