Skip to content

bug: Incomplete export causes bundler error with Ionic Framework #1458

@DinosaurDad

Description

@DinosaurDad

Current Behavior

In the source file packages/vue/src/components/IonIcon.ts for Ionic framework, there is an import

import { defineCustomElement } from "ionicons/components/ion-icon.js";

that is not provided in the exports of package.json for Ionicons, and this causes bundler problems. I am not able to build with Vite and Ionicons 8.x, and narrowed it to the partial export.

Missing "./components/ion-icon.js" specifier in "ionicons" package [plugin vite:dep-pre-bundle]

Is this an Ionicons problem, or an Ionic Framework problem?

Expected Behavior

Ability to build with a bundler.

Steps to Reproduce

Use Ionicons 8.x with Ionic Framework 8.6.1 (currently the latest) and build with Vite.

Code Reproduction URL

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions