Deno:将JavaScript模块导入TypeScript时出错

Deno:将JavaScript模块导入TypeScript时出错,javascript,typescript,v8,deno,Javascript,Typescript,V8,Deno,我有一个TypeScript脚本,它导入Xlsx.js模块,如下所示: import {XLSX} from 'https://github.com/exceljs/exceljs/blob/master/lib/xlsx/xlsx'; 这将显示以下错误消息: Download https://github.com/exceljs/exceljs/blob/master/lib/xlsx/xlsx error: Uncaught Other: Import 'https://github.co

我有一个TypeScript脚本,它导入
Xlsx.js
模块,如下所示:

import {XLSX} from 'https://github.com/exceljs/exceljs/blob/master/lib/xlsx/xlsx';
这将显示以下错误消息:

Download https://github.com/exceljs/exceljs/blob/master/lib/xlsx/xlsx
error: Uncaught Other: Import 'https://github.com/exceljs/exceljs/blob/master/lib/xlsx/xlsx' failed: 404 Not Found   ► js/errors.ts:33:12
    at DenoError (js/errors.ts:22:5)
    at maybeError (js/errors.ts:33:12)
    at maybeThrowError (js/errors.ts:39:15)
    at sendSync (js/dispatch.ts:137:5)
    at fetchSourceFile (js/compiler.ts:134:19)
    at _resolveModule (js/compiler.ts:253:12)
    at js/compiler.ts:369:33
    at resolveModuleNames (js/compiler.ts:367:24)
    at resolveModuleNamesWorker (third_party/node_modules/typescript/lib/typescript.js:89230:127)
    at resolveModuleNamesReusingOldState (third_party/node_modules/typescript/lib/typescript.js:89473:24)
我错过了什么?我使用的是Windows 10 x64 build 18912.1001,使用的是Deno版本0.13.0
v8 7.7.200版,TypeScript 3.5.1版使用Deno时,需要指定文件的整个扩展名

我相信你可能想这么做

import {XLSX} from "https://github.com/exceljs/exceljs/blob/master/lib/xlsx/xlsx.js";
错误非常清楚:“未找到”。通过将URL复制到空的浏览器选项卡中,您可以自己查看。