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.

Can't import the latest version 1.0.40

See original GitHub issue

Dependencies seem to be broken in the latest version. To reproduce:

// sample.ts
import * as denodb from "https://deno.land/x/denodb@v1.0.40/mod.ts";
console.log(denodb.Database);
> deno run sample.ts
Download https://dev.jspm.io/debug@4
Download https://dev.jspm.io/inherits@2.0
Download https://dev.jspm.io/lodash@4
Download https://dev.jspm.io/npm:@jspm/core@1/nodelibs/url.js
Download https://dev.jspm.io/npm:@jspm/core@1/nodelibs/events.js
Download https://dev.jspm.io/npm:@jspm/core@1/nodelibs/timers.js
error: Import 'https://dev.jspm.io/lodash@4' failed: 500 Internal Server Error
    at https://raw.githubusercontent.com/Zhomart/dex/930253915093e1e08d48ec0409b4aee800d8bd0c/lib-dyn/deps.ts:13:24

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
IAmSpudLabscommented, Sep 24, 2022

So after some digging in I figured I’d give a full breakdown of what the source of the problem is for anyone else who stumbles on this.

Denodb imports dex as a dependency to build MySQL queries. The repo, Dex, (which also appears to be abandoned) imports multiple files from JSPM. The problem is that JSPM has recently changed their URL format from dev.jspm.io to jspm.dev, which has broken quite a few of Dex’s imports.

If anyone would like a fast and easy fix I’ve forked both denodb and dex to update the import statements using JSPM’s new format. Repo is here.

Denodb’s unit tests are passing with these changes but the tests appear to only cover sqlite and mysql.

Edit: I’ve also updated the dependencies using the PR here

0reactions
osieltorrescommented, Dec 6, 2022

Check the following answer, as @IAmSpudLabs said, dev.jsmp.dev changed the their URL format and some time ago and some old / out-of-date dependencies does not work anymore. The following comment has a workaround to fix the error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · eveningkid/denodb - GitHub
Can't import the latest version 1.0.40. #359 opened on Sep 8 by akatechis · 5 · Serialized Model option rather than classes? #358...
Read more >
Python method not found after import - Stack Overflow
We feel a bit stupid for NOT checking the version. We were using the 1.0.36 version on Google Colab which does not have...
Read more >
devil/devil/android/sdk/adb_wrapper.py - catapult.git
If False, app is pushed to device and be installed from there. Note this option is not supported prior to adb version 1.0.40....
Read more >
Fastai v1 install issues thread
I am having trouble upgrading to the latest version of fastai on Windows 10 using conda. I haven't been able to update since...
Read more >
react-data-grid - npm
Feature-rich and customizable data grid React component. Latest version: 7.0.0-beta.19, last published: 12 days ago.
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