Yarn pnp causes drive letter mismatch on Windows with Testcafe

Viewed 23

Testcafe is unable to compile my test with yarn pnp, I run into the following error after switching to yarn pnp with:

nodeLinker: "pnp"
pnpMode: "strict"

The error message:

code: 'E1035'
Error: TypeScript compilation failed.
C:/testcafe/test.ts (13, 17): File name 
'C:/testcafe/.yarn/cache/testcafe-npm-2.0.0-395078fea1-9192f88fb7.zip/node_modules/testcafe/ts-defs/index.d.ts' 
differs from already included file name 
'c:/testcafe/.yarn/cache/testcafe-npm-2.0.0-395078fea1-9192f88fb7.zip/node_modules/testcafe/ts-defs/index.d.ts' only in casing.
  The file is in the program because:
    Root file specified for compilation
    Imported via 'testcafe' from file 'C:/testcafe/test.ts' with packageId 'testcafe/ts-defs/index.d.ts@2.0.0'

forceConsistentCasingInFileNames: false does not function as a workaround as it is not the file but path name

1 Answers
Related