Skip to content

Broken with Nuxt 3.12.3 : _interopRequireDefault2 is not a function #227

Open
@julbd

Description

@julbd

Description

Since Nuxt 3.13.2 (which removed their interop helper), typesense-instantsearch-adapter throws the following error :

Uncaught TypeError: _interopRequireDefault2 is not a function

It seems that typesense-instantsearch-adapter is unable to find and use babel's runtime helpers. But I don't see how to make it work in the Nuxt 3 build context. showcase-guitar-chords-search-nuxt-js have the same issue once nuxt is updated.

Steps to reproduce

Reproduction steps using the showcase :

git clone https://github.com/typesense/showcase-guitar-chords-search-nuxt-js.git

cd showcase-guitar-chords-search-nuxt-js

npm i

npm run dev # works

npm i [email protected] # or any following version

npm run dev # error

Metadata

  • typesense-js: 1.8.2 / tested on multiples versions
  • typesense-instantsearch-adapter: 2.8.0 / tested on multiples versions
  • Firefox 133.0
  • macOS 15.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions