Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed resolving types. [ERR_TYPES_NOT_FOUND] #26826

Open
wangxiaoze-view opened this issue Nov 12, 2024 · 0 comments
Open

Failed resolving types. [ERR_TYPES_NOT_FOUND] #26826

wangxiaoze-view opened this issue Nov 12, 2024 · 0 comments
Labels
needs investigation requires further investigation before determining if it is an issue or not types Issues related to TypeScript types

Comments

@wangxiaoze-view
Copy link

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?

@littledivy littledivy added needs investigation requires further investigation before determining if it is an issue or not types Issues related to TypeScript types labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation requires further investigation before determining if it is an issue or not types Issues related to TypeScript types
Projects
None yet
Development

No branches or pull requests

2 participants