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

better typing for node16 TSC #2997

Closed
Yimiprod opened this issue Sep 19, 2023 · 1 comment · Fixed by #2998
Closed

better typing for node16 TSC #2997

Yimiprod opened this issue Sep 19, 2023 · 1 comment · Fixed by #2998
Labels
category: docs Documentation changes

Comments

@Yimiprod
Copy link

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.

@UziTech
Copy link
Member

UziTech commented Sep 19, 2023

@types/marked isn't needed any more. We need to update our docs.

@UziTech UziTech added the category: docs Documentation changes label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: docs Documentation changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants