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.

No distributable provided for import/require

See original GitHub issue

Usually, a library delivered over npm provides a built version that another module can directly consume with import or require. This is usually done by pointing main in package.json to a file within the source bundle. If I’m understanding #44, this is the same problem they are facing - although jsDelivr is not a standard key in package.json so is not the proper solution.

To fix this, either (a) the distributable needs to be included in the source bundle uploaded to npm, (b) the package needs to be built by import/require instead of concatenation, or - ideally - © both!

(a) is the easiest and requires the least restructuring, and the simplicity of this library means (b) probably isn’t too far off as well. If you’re looking for assistance, happy to make a PR (although it may seem drastic)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
yaphcommented, May 7, 2019

Hey thanks a lot for the PR! I hope I get to try and review it till the end of this week.

I’ve looked into rollup too, because d3 is using it. I have no personal preference for rollup or webpack because I haven’t really used either of them. I hope we’ll get this resolved soon. Thanks again for your effort!

0reactions
yaphcommented, Jun 11, 2019

I just created release 3.0.0. So I’ll close this issue. If something is not working as expected, please let me know. Thanks again for your help in making this happen!

Read more comments on GitHub >

github_iconTop Results From Across the Web

DEA Form 486
This form is to be used in notifying DEA of all imports, exports, and international transactions as required by the Controlled Substances Import...
Read more >
312.110 - CFR - Code of Federal Regulations Title 21 - FDA
Sec. 312.110 Import and export requirements. (a) Imports. An investigational new drug offered for import into the United States complies with ...
Read more >
21 CFR Part 1312 -- Importation and Exportation of Controlled ...
(b) No person shall import, or cause to be imported, into the customs territory of the United States from any place outside thereof...
Read more >
Import Permit Program - Frequently Asked Questions - CDC
No. Organisms or parasites that are not infectious to humans do not require a CDC import permit. However, other regulations may apply to...
Read more >
ICP - Recordkeeping - Customs and Border Protection
Examples: A person who purchases an imported automobile from a dealer within the United States generally would not be subject to CBP recordkeeping...
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