Skip to content

typescript-estree seems to be using a default import that doesn't exist #335

@deifactor

Description

@deifactor

My dependencies:

  "dependencies": {
    "@typescript-eslint/typescript-estree": "^1.4.2",
    "typescript": "^3.3.3333"
  }

I have a file containing the single line

import * as tsParser from "@typescript-eslint/typescript-estree";

which fails to typecheck:

node_modules/@typescript-eslint/typescript-estree/dist/ts-nodes.d.ts:1:8 - error TS1192: Module '[redacted]/node_modules/typescript/lib/typescript"' has no default export.

1 import ts from 'typescript';
         ~~

It works if I enable allowSyntheticDefaultImports in my tsconfig.json, but it might be better to just import * as ts from 'typescript' instead.

package version
@typescript-eslint/typescript-estree 1.4.2
TypeScript 3.3.3333
node v11.7.0
npm 6.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation ("docs") that needs adding/updatinggood first issueGood for newcomershas prthere is a PR raised to close thispackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy