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. The last version that works with modules import lru from 'tiny-lru' when bundling with webpack is 1.6.4
As far as I can tell the compilation method/target has changed since version 2.0.0; I haven’t found a way to import tiny-lru as a module since then.

Thank you

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
avoidworkcommented, Jan 23, 2019

sure, please include minified versions in .npmignore … unless needed?

0reactions
trycontrolmymindcommented, Jul 6, 2020

Solve it like this

yarn add tiny-lru@6

webpackConfig.resolve = {
 ...your config resolve...
  alias: {
    "tiny-lru": path.join(process.cwd(), "/node_modules/tiny-lru"),
  }
};

For me, it was important to build all dependencies into one file

Read more comments on GitHub >

github_iconTop Results From Across the Web

Broken Module Diagnosis and Repair - Voltage Control Lab
Recently, in one of our weekly Office Hours, we attempted to diagnose and repair a broken module that one of our students had...
Read more >
Module is broken · Issue #197 · strongself/Generamba - GitHub
Module is broken ! ["project_file_path", "project_group_path", "test_file_path", "test_group_path"] field cannot be empty, because it is mandatory.
Read more >
Broken module or easy fix? - MOD WIGGLER
When it was returned, I tested it, and found that the module only seems to work when the power cable is roughly half-way...
Read more >
Broken Eurorack Module Diagnosis And Repair - YouTube
Recently, in our weekly Office Hours, we attempted to diagnose and repair a broken Doepfer A-160 Clock Divider Eurorack module that one of ......
Read more >
error: Plugin module is broken - Atlassian Community
The code in the module is simply broken - you'll need to re-write it and compile it for the right version of Jira....
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