D
Deno

help

File differs only by case error

Sshawnbu8/16/2023
I'm getting a strange error from TypeScript. For some reason it thinks the case of my file name is different and it's causing problems with check and when running.
Says file differs only by case. How can I resolve this? I don't have access to Deno's ts config or cache or anything (that I'm aware of)
No description
Aabi8/16/2023
Had this issue a few times, it’s not Deno-specific, I think it’s TS. I Google my way to the solution every time it happens. There’s solutions on Stack Overflow.
ABAltair 680b8/16/2023
I get this error if I change a filename while in VS Code by case. Util.ts to util.ts. The only way to clear it was to close and re-open VS Code. I'm on Windows.
Sshawnbu8/16/2023
That's annoying because I don't have any control over it. Deno check returned the error also but I got it resovled by deleting all the files in my repo and piece by piece copy pasting the code back into empy files. Lucky I just got the repo started and there were only a few files. Once I convert all the NodeJS to Deno there will be like 1000's of files. Hopefully this won't happen often.
ABAltair 680b8/16/2023
I've also found that while in VS Code, you can just rename the offending file with an extra char xUtils.ts and then rename it again utils.ts, and the error goes away.
Sshawnbu8/16/2023
I'll try that next time. I'm using webstorm but if it's an ide issue it might work
ABAltair 680b8/16/2023
I think it comes from Deno LSP but not sure.

Looking for more? Join the community!

Recommended Posts
Possible to have multiple http servers listening to different ports in the same module?I'm porting a service mesh platform we wrote for NodeJS over to Deno and it is based on the idea of How to have private state in embedded deno_core JsRuntime?I need to either keep a reference in rust to an object I then `delete globalThis.__context`, but I cIssues getting local environment running in VSCode and Visual Studio 2022I'm a windows user trying to contribute on an github issue, but I've run into a few blockers. Using Relative import path "ioredis" not prefixed with / or ./ or ../```ts // main.ts import Redis from "ioredis"; ``` ```json // deno.json { "imports": { "ioredisPixi.js breaks DenoI'm trying to import Pixi in a Fresh island: ``` import { Sprite, Stage } from "npm:@pixi/react@7.1Confused by deno vendor-related behaviorsI created a main.ts containing this code: ``` import * as thrift from "npm:thrift"; let connection =How to release node:zlib resourcesI have some testcases which use the `node:zlib` polyfill and I'm having a bit of trouble getting theDeno Repl ProgrammaticallyPython has a really nice not-well-known tool for creating a repl at any point in the code (kinda likDeno for SASS dependencies?I'm trying to understand how I would migrate from Jekyll and NPM to Lume and Deno. Specifically, I uHow can I send a number across a Deno.TcpConn as stream of bytes?I need to send a number across a Deno.TcpConn as 4 bytes, so it can be read by a server as an int32.Migrating `Deno.run` to `Deno.command` with `readlines`I had the following: ```ts browserProcess = Deno.run({ cmd: buildArgs, // eg chrome exe path, thError: Not implemented: crypto.KeyObject.prototype.asymmetricKeyTypeHello. Im trying to create a RSA Keypair, using the node **crypto.generateKeyPair** function, but i `Uncaught TypeError: encode is not a function` when using npm module `@kubernetes-client/node`I'm trying to use a particular call in the npm module `@kubernetes/client-node` from deno, but I'm gLinking to external codeif i want to link to external code, do i have to import it from https://deno.land?