Skip to content

DocSearch v4 import not found #2693

@williampaciaroni

Description

@williampaciaroni

Description

I installed DocSearch using npm in an Angular project and imported the dependencies as mentioned in the doc.

Image

The issue seems to be related to the dependency @docsearch/react:

Image

Steps to reproduce

  1. Create Angular project
  2. Run npm install @docsearch/js@beta
  3. Import the dependency in the project and call docsearch()
import docsearch from '@docsearch/js';
import '@docsearch/css';

docsearch({
      container: '#docsearch',
      appId: 'appId',
      indexName: 'index',
      apiKey: 'apiKey',
      searchParameters: {
        facetFilters: ['language:en']
      }
    });
  1. See error

Expected behavior

I don't expect any dependency with react deps

Environment

  • OS: [macOS]
  • DocSearch version: [e.g. 4.0.0-beta.5]

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