fuzzyset.js icon indicating copy to clipboard operation
fuzzyset.js copied to clipboard

fuzzyset 1.0.6 and above not working when webpacked

Open fergiemcdowall opened this issue 3 years ago • 6 comments
trafficstars

Hi and thanks for a great lib!

I have found that [email protected] and above works great in vanilla node apps, but seems to stop working when webpacked. 1.0.5 works for me in both scenarios.

fergiemcdowall avatar May 04 '22 20:05 fergiemcdowall

Can you please provide some steps to reproduce what you're seeing? And the latest version should be 1.0.7.

Glench avatar May 04 '22 20:05 Glench

Applies to 1.0.6 and above (so also 1.0.7)

Fuzzyset is used in one of the search-index tests. In this testsearch-index creates a dictionary from a corpus and then feeds that dictionary into fuzzyset

To replicate the problem:

  1. Clone search-index
  2. npm install
  3. run npm run test-node and npm run test-browser (tests pass 🎉)
  4. In package.json update fuzzyset to 1.0.7 (or 1.0.6)
  5. rm -rf node_modules && npm install
  6. Run npm run test-node (tests pass 🎉)
  7. Run npm run test-browser (same tests fail on fuzzyset)

This is not a super big issue for me, and I know that slogging through somebody elses webpack config is pretty time consuming, so its cool to just treat this as an "incident report" and only follow up on it if other users report the same behaviour.

fergiemcdowall avatar May 04 '22 20:05 fergiemcdowall

Thanks for the report and replication steps!

To others viewing this thread, please comment here if you're also impacted by this issue.

Glench avatar May 04 '22 21:05 Glench

My team is impacted by this as well.

ArmelChesnais avatar Jun 16 '22 01:06 ArmelChesnais

Please consider posting some of your config in a way that reproduces the issue.

Glench avatar Jun 16 '22 01:06 Glench

Ran into this issue on webpack ^5.74.0. I started writing out our config but we quite a complicated monorepo set up, and I don't think I'll have the time to write it all out.

nikodevv avatar Oct 15 '22 04:10 nikodevv