ionic-team/ionicons

bug: IonIcons not loading after parcel build

オープン

#1,215 opened on 2023/05/17

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (2,083 件のフォーク)batch import
help wantedtype: bug

Repository metrics

Stars
 (17,256 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド