You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
Hi there, I am using the flags implementation into a next.js project with TS, when creating the getFlags function I get the following error:
Exported variable 'getFlags' has or is using name 'FactoryGetFlagsOptions' from external module "/home/unoscar/workspace/src/github.com/bd-dashboard/main-platform/node_modules/@happykit/flags/dist/server" but cannot be named.ts(4023)
I believe this can get fixed by just exporting the FactoryGetFlagsOptions interface.
I'll be creating a fork with the fix and a PR, but in case it help to have the issue recorded here.
Cheers
Activity
dferber90 commentedon Jan 16, 2023
Interesting, as I've not seen that before.
How are you importing
getFlagsin your code? Could you copy the import line here?Are you maybe importing from
@happykit/flags/dist/serverinstead of@happykit/flags/server?karmatradeDev commentedon Apr 17, 2023
hi im having this problem as well i think an export on line 18 does the trick.
dferber90 commentedon Apr 18, 2023
@karmatradeDev Could you show the source code of the file where you are seeing this error?