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.

Hi,

thank you for your effort.

The project I’m working is using TypeScript and Prettier.

I did the dry run like you recommended and noticed that there are errors.

image

The braces around curly braces {} are missing. What can be done to fix this?

Thank you

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ghost---Shadowcommented, Sep 5, 2019

Until then use this regex 😛 https://regex101.com/r/WbOTNk/1

0reactions
Ghost---Shadowcommented, Sep 5, 2019

I have very little experience with typescript, but it looks like it is valid typescript syntax.

The bracket removal is not the consequence of any of my code. Babel is doing that for some reason.

Capture

Read more comments on GitHub >

github_iconTop Results From Across the Web

The useState set method is not reflecting a change ...
PureComponent , the state update using the updater provided by useState hook is also asynchronous, and will not be reflected immediately. Also, the...
Read more >
5 Most Common useState Mistakes React Developers ...
The problem is that useState allows you to define its initial state using anything you want. However, what no one tells you outright...
Read more >
Steps to Solve Changes Not Reflecting When useState Set ...
When the “useState” set method is not reflecting a change immediately, it may be due to the current closure of the state variable....
Read more >
React Hooks cheat sheet: Best practices with examples
React useState and setState don't make changes directly to the state object; they create queues to optimize performance, which is why the ...
Read more >
Dangers of using Objects in useState & useEffect ReactJS ...
What we talk about in this article is a problem/bug that can easily go unnoticed when using objects with hooks.
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