vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

Already included file name: file with customs extension

Open ynwd opened this issue 2 years ago • 1 comments

TS error: Already included file name on file with customs extension.

but NO ERROR on build process.

Already included file name 'file:///Users/pro/Documents/deno/app/index/index.handler.ts' differs from file name 'file:///Users/pro/Documents/deno/app/index/index.Handler.ts' only in casing.
  The file is in the program because:
    Root file specified for compilation    Imported via "./index.handler.ts" from file 'file:///Users/pro/Documents/deno/app/index/mod.ts'    Root file specified for compilationdeno-ts(1261)

To Reproduce

  • Just rename [file-name].ts with [file-name].[additional-extension].ts

Expected behavior

  • No error on VS-code.

Screenshots

Screenshot 2023-09-02 at 14 11 15

Versions

  • vscode: 1.81.1 (Universal)
  • deno: 1.36.4
  • extension: v3.20.0

ynwd avatar Sep 02 '23 07:09 ynwd

I have a similar issue. I resolved mine by disabling the extension and re-enabling it. Seems to be some sort of file name caching issue in deno/deno extension.

swiftsword94 avatar Aug 23 '24 14:08 swiftsword94