react-flagpack icon indicating copy to clipboard operation
react-flagpack copied to clipboard

TS: export 'default' (imported as 'Flag') was not found in 'react-flagpack' (module has no exports)

Open Arakash opened this issue 3 years ago • 10 comments

Hi,

I just updated flagpack and I get this error when trying to import the Flag Component:

import Flag from 'react-flagpack'

I tried fixing it for a few hours, but I'm at my witts end.

I use react + typescript with webpack 5.

error looks like this:

WARNING in ./src/app/Widgets/DualCountryFlag.tsx 14:36-40
export 'default' (imported as 'Flag') was not found in 'react-flagpack' (module has no exports)
 @ ./src/app/CertificateViewer/rowInput.tsx 15:0-57 148:36-51

Any help would be appreciated :)

Arakash avatar Sep 03 '21 10:09 Arakash

Issue happens for me using CRA with react 18.1.0

CreativePhilip avatar May 28 '22 21:05 CreativePhilip

Same issue happening when I tried to use this.

jimburbfs avatar Aug 29 '22 08:08 jimburbfs

same issue here.

yoavsbg avatar Oct 25 '22 10:10 yoavsbg

Same issue here

gzuckerman avatar Dec 15 '22 14:12 gzuckerman

same here

Olu93 avatar Mar 21 '23 21:03 Olu93

same here

april21dev avatar Apr 07 '23 10:04 april21dev

Still happening

philhagger avatar May 19 '23 11:05 philhagger

same problem nice support

Swarzox avatar May 25 '23 18:05 Swarzox

I completely understand the frustration, unfortunately as Yummygum is a digital agency, priority is given to client projects. This results in us being able to spend less time than we would like on projects such as Flagpack.

There are changes that we aim to implement in Flagpack, however since these changes are rather large they take more time and since we do not get much time to work on Flagpack this is likely to remain an issue for a while.

While I would love to be able to provide somewhat of a timeframe, sadly I am unable to do so at this moment. Since the code is open source anyone is more than welcome to try and resolve this issue, just give me a ping if you make a pull request and I'll make sure the pull request gets through and released.

zoeyfrisart avatar May 26 '23 07:05 zoeyfrisart

i am also getting same issue?

niteshnagar1432 avatar May 03 '24 07:05 niteshnagar1432