Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lunr-languages lunr.zh bundle fails #2028

Open
citasionm opened this issue Feb 1, 2022 · 1 comment
Open

lunr-languages lunr.zh bundle fails #2028

citasionm opened this issue Feb 1, 2022 · 1 comment

Comments

@citasionm
Copy link

My dependencies

"dependencies": {
    "aws-sdk": "^2.1066.0",
    "lunr": "^2.3.9",
    "lunr-languages": "^1.9.0",
    "mock-aws-s3": "^4.0.2",
    "nock": "^13.2.2",
    "nodejieba": "^2.6.0",
  }

I have the following file:

const lunr = require('lunr');
require('lunr-languages/lunr.stemmer.support')(lunr);
require('lunr-languages/lunr.multi')(lunr);
require('lunr-languages/lunr.es')(lunr);
require('lunr-languages/lunr.zh')(lunr);
exports.lunr = lunr;

I generate a bundle using
browserify manager-imports.js --standalone browserifyManager -o manager-bundle.js

Then when I use node
require('./manager-bundle')

I get the following error:
Uncaught TypeError: Cannot read property '_handle' of undefined

The error comes from stream._handle when I look at the bundle but beyond that I am not sure why it fails. This does not fail when I require the regular file.

@mikixing
Copy link

mikixing commented Feb 1, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants