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.

Error on last release

See original GitHub issue

Hey there!

Awesome work with this troch, just wanted to let you know that on the last release you’ve published, it breaks saying that Path is not a constructor.

Just by using const p = new Path('/api/names/:name/:number');

But somehow it says that is not a constructor. As soon as I downgrade to another version of the package, the same code works just fine!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
borjadotaicommented, Apr 10, 2018

Great! Thanks for clarifying and updating the README 😉 Again, amazing work!

1reaction
trochcommented, Apr 9, 2018

So the issue was with previous versions and a configuration option missed in tsConfig.json.

Correct way to import with require is:

const { Path } = require('path-parser')
// or
const Path = require('path-parser').default
Read more comments on GitHub >

github_iconTop Results From Across the Web

get-last-release gets incorrect version. #1351 - GitHub
In my current project, Github Pull Requests' default "create a merge commit" which adds all commits into primary branch, has been disabled in ......
Read more >
The Warning to release new album 'Error' on June 24th
and Alejandra “Ale” Villarreal (bass, piano, backing vocals) will be releasing their new album Error via Republic Records on June 24, 2022.
Read more >
Add additional frontend validation and/or error messages on ...
Problem to solve When creating a new release using the New Release page (implemented in.
Read more >
How to Fix helm "has no deployed releases" Error - phoenixNAP
Solution 2: Cleaning Up Failed Deployments. Deleting the current release and starting a new one from scratch fixes the issue. To do this...
Read more >
Error: "ProSystem fx has detected that a new release has been ...
Error: "ProSystem fx has detected that a new release has been installed on your network. To ensure that your local program is running...
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