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.

Generated typings are broken

See original GitHub issue

Current Behavior

Generated typings are broken (literally) starting from v0.10.0. Here are some snippets:

    interface Query extends Object {
        id: ID;
        type?: ch;
        ';;
        exp;
    }
    interface Query extends Object {
        id: ID;
        type?: xport;
        fu;
    }

And YES, it duplicated almost every type declaration (see the full file here)

Expected behavior

Typings don’t have syntax errors.

Suggested solution(s)

I think it’s a bug in @wessberg/rollup-plugin-ts. I tried that lib before in a different project but quickly removed it due to the same issue.

Your environment

Software Version(s)
TSDX >= v0.10.0
TypeScript 3.6.4
Browser N/A
npm/Yarn 6.11.3
Node 12.8.1
Operating System Debian Linux

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
wessbergcommented, Nov 9, 2019

@z0al, The issue with malformed typings you reported has been fixed in the latest version of rollup-plugin-ts.

0reactions
z0alcommented, Oct 29, 2019

No worries. I will do if I could reproduce it in a small repo, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you fix a broken type signature in a library for your ...
1 Answer 1 · Install a different version of the typings and lock it (use the --save-exact flag when running npm install )....
Read more >
Long-generating Bash prompt wraps incorrectly when I ...
Sometimes I start typing a command before it appears, but then the command wraps incorrectly. Here is what I see in the terminal:...
Read more >
Someone seems to have broken the demo by typing in some ...
Someone seems to have broken the demo by typing in some JavaScript. Doesn't seem to be sanitizing input completely. EDIT: Looks like it's...
Read more >
Common TypeScript module problems and how to solve ...
Enabling the compiler module resolution tracing in TypeScript can provide insight in diagnosing and solving problems.
Read more >
Manage suggested recipients in the To, Cc, and Bcc boxes ...
When you start typing in the To, Cc, and Bcc fields in Outlook, ... The names and addresses that appear in Other Suggestions...
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