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.

Feature Request: Handle TypeScript Better

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • ndb version: v1.0.6
  • Platform / OS version: Ubuntu 16.04
  • Node.js version: v8.10.0

What steps will reproduce the problem?

Please include code that reproduces the issue.

I followed this guide, hoping it would work out essentially the same. It _kind of _ works. I opened ndb with ndb . in the root of my project, then ran one of my npm scripts from the ndb UI. The script was ts-node src/index.ts (I had to move my typings around a bit before this would work), and it ran just fine from inside ndb. Unfortunately, after starting the script, I could not set breakpoints in any of the files listed by ndb. However, if I stopped the script, set a breakpoint in one of the .ts files (specifically, src/inxex.ts), then restarted the script, ndb would start up and open a new file. This file matches what the article linked above led me to expect - the tab says the file is index.ts?[sm]. However, I cannot actually select this or other files from the list of files presented in the UI by ndb.

At this point, with the already-opened index.ts?[sm] file, I can move the breakpoint around and it appears to work fine.

What is the expected result? If sourcemaps are available, the sourcemapped files should be available instead (or at least in addition to) the normal .ts files.

What happens instead? They are not listed in the UI.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ak239commented, Aug 7, 2018

Finally this one should be fixed in just published 1.0.20. Please check it out. 😄

0reactions
ankur123commented, Dec 11, 2018

I am seeing the same issue as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

Communicating with backend services using HTTP - Angular
The HTTP client service offers the following major features. The ability to request typed response objects; Streamlined error handling ...
Read more >
Documentation - TypeScript 3.7
The nullish coalescing operator is another upcoming ECMAScript feature that goes hand-in-hand with optional chaining, and which our team has been involved with ......
Read more >
Basic Features: TypeScript - Next.js
It is highly recommended to be on at least v4.3.2 of TypeScript to experience the best performance when leveraging this feature. Ignoring TypeScript...
Read more >
How To Use Classes in TypeScript | DigitalOcean
In 2015, ECMAScript 6 introduced a new syntax to JavaScript to create classes that internally uses the prototype features of the language.
Read more >
Feature request: support TypeScript 'out of the box' - community
If you mix and match TS with 'regular' JS files, you are in for some pain. It's best either to go all in...
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