Skip to content

Inspect is not a function, Inspect.default is #100

Closed
@effulgentsia

Description

@effulgentsia

Describe the bug

The README says that

import Inspect from 'vite-plugin-inspect'

export default {
  plugins: [
    Inspect()
  ],
}

should work. When I do that, I get:

TypeError: (0 , import_vite_plugin_inspect.default) is not a function

The following works but doesn't match the README:

import Inspect from 'vite-plugin-inspect'

export default {
  plugins: [
    Inspect.default()
  ],
}

Reproduction

See the description

System Info

Node 18
Vite 5.0.4
Vite Plugin Inspect 0.8.0
Bun 1.0.14

Used Package Manager

bun

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions