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.

Problems building packages

See original GitHub issue

I’ve had trouble using patch-package on a lot of projects.

Not all npm packages will publish all the files needed to build from scratch.

If a project only publishes an uglified dist folder to npm, is there a way to effectively use patch-package with it?

I’ve run into an issue where the src folder has been published to npm, but some config files have not been published so it’s not easy to do the build step. Do I just have to copy over the missing files from GitHub to do the build or am I missing something with how this package should be used?

This is a related issue that assumes you edit the src folder and then build again: https://github.com/ds300/patch-package/issues/12

The issues I’ve run into here seem to happen with every package I try and edit, so I’m not sure if I’m misunderstanding how patch-package should be used, or it’s just extremely limited as to when it can be used.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ds300commented, Feb 25, 2019

Hope you don’t mind if I close this issue. Glad to answer further questions, but this isn’t an actionable item so I’d prefer to tidy up. Thanks!

1reaction
avrahamcoolcommented, Feb 25, 2019

Sounds like you should create an issue there, asking to add the relevant files into the npm package.

What you are discribing here is inconvenient, but there nothing you can do from patch-package side if the package is missing some key files.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blog: The Multifamily Package Problem: Why Buildings Need ...
When packages are left unattended in building common areas, it poses a huge security risk—without oversight of who is moving through the area, ......
Read more >
Troubleshooting Package Building Problems - VIPM
Issues that may cause package building to fail and possible solutions are listed below: One or more of your source files are missing...
Read more >
Apartment-Building Package Delivery: An Old Problem with a ...
Apartment-building package delivery can cause inconvenience at best and property loss at worst. Coinamatic's storage lockers can help.
Read more >
The Challenges of Building a Benefits Package - LinkedIn
For benefits managers, building benefits packages is an ongoing and ever-evolving enterprise. There are literally hundreds of options for ...
Read more >
Potential issues for first time builders of a Barndominium
Here you will find some of the most common and potentially project halting issues that get overlooked by the first-time home builder.
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