Skip to content

better typing for node16 TSC #2997

@Yimiprod

Description

@Yimiprod

I have this error spawning when i put module with the value Node16 and moduleResolution to Node16
Given this typescript configuration:

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "Node16",
    "moduleResolution": "Node16",
    "lib": ["ES2022"],
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "types": ["node", "jest"]
  },
  "ts-node": {
    "transpileOnly": true,
    "require": ["typescript-transform-paths/register"]
  },
  "exclude": ["node_modules"],
  "include": ["src"]
}

with this import

import { marked } from 'marked';

Here's the message received.
image

I have installed @types/marked as said in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions