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.

0.7.0 webpack oddity...

See original GitHub issue
Screenshot 2020-02-10 at 17 56 10

version info:

+flexsearch@nextapps-de/flexsearch#0.7.0:
+  version "0.7.0"
+  resolved "https://codeload.github.com/nextapps-de/flexsearch/tar.gz/128395ffbe96fcb636d40b0828ca4521e2cf7669"

I’ve added flex search to the reducer for now, the idea is that once all “users” are loaded from the server, client will build an index.

+import FlexSearch from "flexsearch";

...

+      {
+        // Maybe own action...
+        const index = new FlexSearch({encode: "advanced", tokenize: "strict"});
+        Object.entires(draft.users).map(([k, v]) => index.add(k, v));
+      }

Here, draft is an immer draft, and I expect v to be an object of shape {username: "xxx", email: "eee", ...}.

I’ll dig into this more tomorrow ofc, just wanted to give an early hail-shot 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
mahnunchikcommented, Feb 13, 2020

import FlexSearch from 'flexsearch/dist/module/flexsearch';

This import works as expected.

1reaction
ts-thomascommented, Jun 28, 2021

Please use the latest version which solves that issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Target | webpack
Webpack can compile for multiple environments or targets. To understand what a target is in detail, read through the targets concept page.
Read more >
CHANGELOG-1.md - gists · GitHub
In a special one-off release as part of the strategy to get a version of npm into Node LTS that works with the...
Read more >
universal-webpack - npm
This library generates client-side and server-side configuration for Webpack therefore enabling seamless client-side/server-side Webpack builds.
Read more >
How to Prevent Webpack Error after npm Install?
In your devDependencies, try downgrading this: awesome-typescript-loader": "3.2.1". to this: awesome-typescript-loader": "2.2.4". If it still doesn't work, ...
Read more >
webpack-style-preset - npm Package Health Analysis - Snyk
Learn more about webpack-style-preset: package health score, popularity, ... Ensure you're using the healthiest npm packages ... 0.7.0.
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