denodb: Unable to run my project due to unavailable dep

I tried to add denodb to my project, but a dependency seems unavailable.

error: Import 'https://dev.jspm.io/npm:@jspm/core@1/nodelibs/timers.js' failed: 500 Internal Server Error

error: Import 'https://dev.jspm.io/npm:@jspm/core@1/nodelibs/timers.js' failed: 500 Internal Server Error

steps to reproduce

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 12
  • Comments: 21 (5 by maintainers)

Most upvoted comments

I’ve implemented the pull request on my own fork of the project if anyone needs it and doesn’t want to do it themselves.

Here is an example of the import to use for the fixed version while we wait for the pull request.

import { Relationships, DataTypes, Database, Model, SQLite3Connector } from 'https://raw.githubusercontent.com/joeldesante/denodb/master/mod.ts';

workaround:

{
  "imports": {
    "https://dev.jspm.io/npm:@jspm/core@1/nodelibs/timers.js": "https://ga.jspm.io/npm:@jspm/core@2.0.0-beta.24/nodelibs/deno/timers.ts",
    "https://dev.jspm.io/inherits@2.0": "https://ga.jspm.io/npm:inherits@2.0.4/inherits.js",
  },
  "scopes": {
    "https://ga.jspm.io/": {
      "util": "https://ga.jspm.io/npm:@jspm/core@2.0.0-beta.24/nodelibs/deno/util.ts"
    }
  }
}

@SirWrexes the code block I put my previous comment goes into a import_map.json file.

In the deno.json you then need to add "importMap": "./import_map.json".

Yeah those error are not new even without the PR #337 😕