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.

require packages not supported?

See original GitHub issue

I have a package in my require config in this manner:

 packages: [
        {
            name: 'CryptoJS',
            location: 'path-to/bower_components/crypto-js',
            main: 'index'
        }
    ]

but asset graph builder still tries to load CryptoJS from basepath and shows warnings am sure this is a valid configuration since the unbuilt version gets configured correctly . Paths work correctly if not defined in an array an I am not having any issue with them

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:24 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
papandreoucommented, Sep 25, 2016

(I promise that things will stabilize once we have a non-prerelease out 😃

1reaction
papandreoucommented, Sep 25, 2016

Actually I can tell why it doesn’t happen. It’s a very recently introduced regression. Fixed in https://github.com/assetgraph/assetgraph-builder/commit/62fda2c0af766906e6892f090248a07d1e5b0312

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error [ERR_REQUIRE_ESM]: require() of ES Module not ...
The error [ERR_REQUIRE_ESM]: require() of ES Module not supported. ... only package, which means that the package cannot be imported with `require()` anymore....
Read more >
Package type "library" is not supported · Issue #26 - GitHub
When I run composer require <package> with v2.0.0, it errors out: ... [InvalidArgumentException] Package type "library" is not supported. Composer 1.10.13
Read more >
Required packages are not auto-installed - Stack Overflow
I put all the required packages in the Imports field in DESCRIPTION. How come that required package is not installed automatically? Do my...
Read more >
Loading R Packages: library() or require()? - R-bloggers
In my Linear Models class, the instructor likes to use require(package). This made me wonder, are the commands interchangeable?
Read more >
'package 'foo' is not available' - What to do when R tells you it ...
This common error means the package you're looking for can't be installed from CRAN. This is how you solve it.
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