We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
utils
No response
import { ESLintUtils, TSESTree } from '@typescript-eslint/utils';
{ "compilerOptions": { "target": "es2017", "module": "commonjs", "outDir": "lib", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, "strictNullChecks": true, "skipLibCheck": true }, "include": ["src", "index.ts"], "watchOptions": { "excludeDirectories": ["**/node_modules", "lib", "tests", "tests-etc"] } }
I can use the module of @typescript-eslint/utils.
@typescript-eslint/utils
The following error occurs.
Cannot find module @typescript-eslint/utils or its corresponding type declarations
When I use @typescript-eslint/utils, the error
occurred.
The project structure is
. ├── packages/ │ └── eslint-plugin-foo/ │ ├── node_modules/ │ │ └── @typescript-eslint/ │ │ └── utils │ ├── src/ │ │ └── rules/ │ │ └── some-rule.ts │ └── tsconfig.json └── tsconfig.json
When I use the package like,
import { ESLintUtils, TSESTree } from '@typescript-eslint/utils/dist'; ...
the error disappear. But when I run a test for it, the following error shown
Package subpath './dist' is not defined by "exports" in somepath/packages/eslint-plugin-foo/node_modules/@typescript-eslint/utils/package.json
6.8.0
The text was updated successfully, but these errors were encountered:
When I add main field of the package utils's package.json like,
main
package.json
{ "name": "@typescript-eslint/utils", "version": "6.8.0", "description": "Utilities for working with TypeScript + ESLint together", "main": "dist/index.js", ... }
the error disappear.
Sorry, something went wrong.
Duplicate of #7284
No branches or pull requests
Before You File a Bug Report Please Confirm You Have Done The Following...
Relevant Package
utils
Playground Link
No response
Repro Code
ESLint Config
No response
tsconfig
Expected Result
I can use the module of
@typescript-eslint/utils
.Actual Result
The following error occurs.
Additional Info
When I use @typescript-eslint/utils, the error
occurred.
The project structure is
When I use the package like,
the error disappear. But when I run a test for it, the following error shown
Versions
@typescript-eslint/utils
6.8.0
The text was updated successfully, but these errors were encountered: