隐式使用 https://deno.land/std/path/mod.ts 的最新版本(0.202.0)

问题描述 投票:0回答:1

我正在尝试使用最新的 std 版本 0.202.0 构建我的项目及其给出的错误。 (https://i.stack.imgur.com/Cc7Cd.png) This is my Folder structure 我花了一些时间来调查该错误,但似乎是最新版本的问题。但我如何强制 mod.ts 拉取旧版本。 我的文件中有以下代码。

import { Base64 } from "https://deno.land/x/bb64/mod.ts";
import { readAllSync } from "https://deno.land/[email protected]/io/util.ts";
import { basename } from "https://deno.land/[email protected]/path/mod.ts";

const version = "$Revision$";
const usage = `
DTS Command Line Tooling: importexcel

Usage:
importexcel --version
importexcel -h | --help
importexcel <DataFile>

Options:
  -h --help         Show this screen.
  --version         Show version of this command.
`;
import docopt from "https://deno.land/x/[email protected]/dist/docopt.mjs";
import { MultipartWriter } from "https://deno.land/[email protected]/mime/multipart.ts";

function importexcel(args: any) {
}

const repo = "PTCSC.DataImport.UploadAndBackupRepository";
var sourcePath = "/DataImport"; // Default sourcePath

async function upload(opts: any, properties: any) {
  try {
    const dataFile = opts["<DataFile>"];

不知道如何尝试拉取旧版本

deno dts
1个回答
0
投票

运行

deno info
,以便您可以查看哪个文件正在导入那些未固定的依赖项。

如果是您的某个文件正在导入它们,您只需将版本固定在

import
语句中即可。

如果您的依赖项之一依次导入未固定的依赖项,则您必须更改依赖项存储库中的代码,或者您可以使用

deno vendor
将依赖项“嵌入”到您的项目中,然后编辑其
import
使用固定版本(您的情况是旧版本)。理想情况下,如果依赖关系本身被破坏,它应该在依赖关系本身(上游)中修复。

© www.soinside.com 2019 - 2024. All rights reserved.