Skip to content

Failed resolving types. [ERR_TYPES_NOT_FOUND]Β #26826

Open
@wangxiaoze-view

Description

Version: Deno 2.0.6

I used a lodash-es package when building a jsr plugin, but this package is full of js files, and an error was reported when publishing

// lodash.ts
export * from "lodash-es";
// main.ts
import { isArray } from "./lodash.ts";
export function test() {
	console.log(isArray([]));
}
image

By the way, I set "nodeModulesDir": "manual" in deno.json, so the editor did not explode, but it would report an error as shown above;

But I set "nodeModulesDir": "auto", and the editor would report an error as shown below:

image But this is OK image

I looked at lodash-es and its package.json does not define types. I wonder if this is the problem?
image

Can deno support such problems in the future?

Metadata

Assignees

No one assigned

    Labels

    needs investigationrequires further investigation before determining if it is an issue or nottypesIssues related to TypeScript types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions