Skip to content

4.1.9 missing imports (useRef, useState, useEffect), broken exports in ESM build #274

@gmarinov

Description

@gmarinov

Describe the bug

the ESM build seems to be broken.

To Reproduce
Steps to reproduce the behavior:

  • yarn add react-select-search@4.1.9
  • cat node_modules/react-select-search/dist/esm/index.js | grep "\$useRef"
var ref = (0, $6XpKT$useRef)();

expected: something defines $6XpKT$useRef
actual: nothing seems to define $6XpKT$useRef. an error that it's not found is thrown in the console.

Additionally, the default export appears to be missing broken with Node versions past 18.19, and one has to do

import SS from "react-select-search";
const SelectSearch = SS.default;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions