question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript not supported?

See original GitHub issue

Installed type

 npm install @types/pdfkit

and import

import {PDFDocument } from 'pdfkit';

Module '"pdfkit"' has no exported member 'PDFDocument'.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

5reactions
marcelh-ghcommented, Jun 11, 2018

import PDFDocument from "pdfkit"; works fine

4reactions
shinriyocommented, Jun 13, 2018
tsc --version
Version 2.8.3

I guess it is fine.

import * as PDFDocument from 'pdfkit';

const doc = new PDFDocument;
Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning from typescript-estree when building TypeScript app
This warning appears: WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-estree. You may ...
Read more >
gruntjs - Version of TypeScript not officially supported by ...
WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.
Read more >
Documentation - TypeScript 3.9
error: Type 'number' is not assignable to type 'string'. ... Visual Studio Code supports selecting different versions of TypeScript.
Read more >
@typescript-eslint/typescript-estree - npm
A parser that converts TypeScript source code into an ESTree compatible form. Latest version: 5.47.1, last published: 2 days ago.
Read more >
TypeScript Programming with Visual Studio Code
No, the TypeScript language service that ships with Visual Studio 2019 and 2022 isn't compatible with VS Code. You will need to install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found