我有一个导入Xlsx.js
模块的 TypeScript 脚本,如下所示:
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