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

Uncaught (in promise) TypeError: (void 0) is not a constructor #320

Closed
6 tasks done
llbarr1 opened this issue Oct 9, 2022 · 4 comments
Closed
6 tasks done

Uncaught (in promise) TypeError: (void 0) is not a constructor #320

llbarr1 opened this issue Oct 9, 2022 · 4 comments
Labels
to triage This issue needs to be triaged

Comments

@llbarr1
Copy link

llbarr1 commented Oct 9, 2022

Describe the bug

On Windows 10 the Search doesn't work. When attempting to perform search on dev or prod, the following console error message is reported:

SearchPane.bd04cdab.js:218 Uncaught (in promise) TypeError: (void 0) is not a constructor
    at createIndex (SearchPane.bd04cdab.js:218:14)

SearchPane.bd04cdab.js:

 function createIndex() {
      return new (void 0)({
        preset: "match",
        document: {
          id: "id",
          index: [
            "text"
          ]
        },
        worker: true,
        charset,
        language,
        tokenize: "forward"
      });
    }

Reproduction

Either running story:dev or running from a production build, search doesn't work.

This behavior was not experienced on MacOS.

System Info

Windows 10 Enterprise 21H2
Browsers: 
- Google Chrome Version 105.0.5195.127 (Official Build) (64-bit)
- Microsoft Edge Version 106.0.1370.34 (Official build) (64-bit)

Used Package Manager

npm

Validations

@llbarr1 llbarr1 added the to triage This issue needs to be triaged label Oct 9, 2022
@llbarr1
Copy link
Author

llbarr1 commented Oct 9, 2022

This issue is no longer happening in histoire 0.11.3, however there’s still an issue with search:

#322

@llbarr1 llbarr1 closed this as completed Oct 9, 2022
@llbarr1
Copy link
Author

llbarr1 commented Oct 10, 2022

Now that the issue with flexsearch has been temporarily fixed, the issue above continues to exist.

@llbarr1 llbarr1 reopened this Oct 10, 2022
@Akryum
Copy link
Member

Akryum commented Oct 11, 2022

Sorry it hasn't been published just yet 🙇
image

@llbarr1
Copy link
Author

llbarr1 commented Oct 12, 2022

Thanks for v.0.11.4 👍🏼 @Akryum

@llbarr1 llbarr1 closed this as completed Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants