question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I would love to use fp-ts with Deno, but there is an issue with HKT encoding. I have tried to naively port fp-ts to Deno with this script:

for (const dirEntry of Deno.readDirSync("./src")) {
  if (!dirEntry.isFile) continue;
  const filePath = `./src/${dirEntry.name}`;
  const src = Deno.readTextFileSync(filePath);
  const denoSrc = src.replaceAll(
    /\"\.\/([a-zA-Z0-9]+)\"/g,
    (_match, capture) => `"./${capture}.ts"`
  );
  Deno.writeTextFileSync(filePath, denoSrc);
}

But there are errors: Type '"Eq"' does not satisfy the constraint 'keyof URItoKind<any>'.

Any idea?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MichaelHirncommented, Jul 26, 2022

@steida @gnlow I got frustrated (with esm.sh) and made a working fp-ts port for Deno

I think I solved the HKT.ts issue; have a look at fixtures/HKT.ts

1reaction
gnlowcommented, Jul 11, 2022

@steida I meant it will fix error Type '"Eq"' does not satisfy the constraint 'keyof URItoKind<any>'. on your porting. Maybe there is another problem in esm.sh. Check my new comment on https://github.com/ije/esm.sh/issues/300.

Read more comments on GitHub >

github_iconTop Results From Across the Web

First Steps | Manual - Deno
This illustrates a general design goal for I/O streams in Deno. Again, here, we need to give --allow-read access to the program. Try...
Read more >
Big changes ahead for Deno | Hacker News
Deno's progress on NPM compatibility may have accelerated due to how BunJS was received, ... Once Deno ships these features I'll try Deno...
Read more >
The ultimate beginner's guide to Deno | The JS runtimes
The audience of this Deno 101 guide are people who are curious ... PermissionDenied: Requires net access to "deno.land", run again with the ......
Read more >
Error installing Deno using `iwr` (again?) · Issue #202 - GitHub
Error installing Deno using iwr (again?) #202. Closed. saschanaz opened this issue on Dec 17, 2021 · 13 comments.
Read more >
How to use Deno - Dev Genius
As I know the technology of Deno which was invented by Ryan Dahl who ... Requires net access to "0.0.0.0:8000", run again with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found