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.

Trex not installing dependencies from import_map.json

See original GitHub issue

Describe the bug After running trex install it does not cache the following dependencies:

{
  "imports": {
    "./": "./",
    "/": "./",
    "dayjs": "https://cdn.skypack.dev/dayjs@1.10.5?dts",
    "dayjs/plugin/": "https://cdn.skypack.dev/dayjs@1.10.5/plugin/",
    "flags/": "https://deno.land/std@0.93.0/flags/",
    "fs/": "https://deno.land/std@0.95.0/fs/",
    "neverthrow": "https://cdn.skypack.dev/neverthrow@4.2.1?dts",
    "path/": "https://deno.land/std@0.93.0/path/"
  }
}

To Reproduce Steps to reproduce the behavior:

  1. Execute trex install > info.txt with an import_map.json following the structure above
  2. See this message in the first line of the file "import_map.json file not found"

Expected behavior Should download and cache the dependencies from the import_map.json file

Screenshots image

Desktop (please complete the following information):

  • OS: Fedora 33 with KDE

Thank you!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
buttercubzcommented, Jul 5, 2021

I could already reproduce the bug, I will be working in the next few days to solve it

0reactions
buttercubzcommented, Dec 25, 2021

this is already fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trex/README.md at master · crewdevio/Trex - GitHub
When you work with import maps trex by default will handle everything using an import_map.json file, but what if I want to use...
Read more >
Trex: A Package Manager for Deno - Morioh
What is Trex?Trex is a Package management for Deno similar to npm but maintaining the deno philosophy. packages are cached and only one...
Read more >
Trex | nest.land
Trex imports. This is a version that does not use import maps as a central hub, it can be used to handle dependencies...
Read more >
Import Maps - Eik
Import maps map "bare" imports in your code to common dependencies at published URLs ... If we create an import map JSON file...
Read more >
Rethinking the way we handle dependency imports in deno
I've been using deno for a while and I must say I love it, using typescript without compiling it first, using import /...
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