Skip to content

bug: IonIcons not loading after parcel build #1215

Open
@IAMAFIVESTARMAN

Description

@IAMAFIVESTARMAN

Current Behavior

IonIcons not loading after parcel build

Expected Behavior

Icons should load

I am using ionicons for my html. It is working fine with live server. I tried to build with parcel and now they are not loading. icons are loading in network tab but not showing up in build. Please advise. Assume body tag enclosed for html

live server
image

parcel build
image

console is giving this error : Uncaught SyntaxError: Cannot use import statement outside a module (at ionicons.esm.js:1:1)

sample code

<style> .feature-icon { color: #c92a2a; height: 3.6rem; width: 3.6rem; margin-bottom: 2.4rem; } ### Steps to Reproduce Build with parcel with ion-icons ### Code Reproduction URL _No response_ ### Additional Information _No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues that are suitable for a community contributortype: bugA bug in the functionality of Ionicons

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions