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.

Compilation fails with deno@v1.5.x

See original GitHub issue

Summary

When trying to use deno-mysql@v2.5.0 from deno@v1.5.1, compilation fails with the following message:

error: TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { LogLevels, LevelName } from "./levels.ts";
                    ~~~~~~~~~
    at https://deno.land/std@0.63.0/log/mod.ts:13:21

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  Deferred,
  ~~~~~~~~
    at https://deno.land/x/mysql@v2.5.0/deps.ts:3:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { Client, ClientConfig } from "./src/client.ts";
                 ~~~~~~~~~~~~
    at https://deno.land/x/mysql@v2.5.0/mod.ts:1:18

Found 3 errors.

Steps to reproduce

// sample.ts
import { Client } from "https://deno.land/x/mysql@v2.5.0/mod.ts";

const client = new Client();
client.connect({
  hostname: "localhost",
  port: 3306,
  username: "test",
  db: "test",
  password: "test",
});
console.log(await client.query(`SELECT 1`));
await client.close();
$ deno run --allow-net ./sample.ts

Environment

$ deno --version
deno 1.5.1
v8 8.7.220.3
typescript 4.0.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Kennytiancommented, Nov 3, 2020

@lideming Nice guy, thanks for your quickly response.

Run

deno cache -r https://deno.land/x/mysql/mod.ts 
deno cache -r https://deno.land/x/mysql/deps.ts

it’s work for me!

2reactions
lidemingcommented, Nov 1, 2020

I just released a new version 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

tiered WebAssembly compilation broken · Issue #36616 - GitHub
WebAssembly module becomes available shortly while optimised compiler continues in the background. Works as expected in interactive mode ( node ...
Read more >
Android 5.0 Lollipop Release Discussion | Page 132 | XDA Forums
FAILED (data transfer failure (No such file or directory)) any help appreciated thanks! ... Gravity box too. Sent from my Nexus 5 using...
Read more >
SENATE - U.S. Government Publishing Office
By Mr. ERVIN ·(for himself and Mr. BUTLER):. S. 1070. A bill to recodify, with certain amendments thereto, chapter 19 of title 5...
Read more >
Let's Learn Deno. The newest kid in town | by Sahan Amarsha
In this Medium post let's dive into Deno. We all know Node.js and simply we love it. We use that as a JavaScript...
Read more >
denver museum of nature & science reports
This congress is jointly hosted by the International Society of ... 5. Arachnid Collecting. ... submissions for the proceedings issue (details below).
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