-
Notifications
You must be signed in to change notification settings - Fork 51
[flagd-provider] Can't import flagd provider in ESM Typescript project #198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @talzion12, thanks for reporting this. Sorry you keep running into ESM issues! The team has limited availability this week but we'll address it as soon as possible. |
@beeme1mr Haha yes ESM is causing me quite a bit of issues 😅 |
I'll look into this today and hopefully publish a fix. |
Thanks again for the report @talzion12 . Looks like this might have been a change/regression in NX. I published If the issue remains, please re-open! |
I'm still seeing issues with this. I have a fix I'll push tomorrow. |
Trying to import FlagdProvider in Typescript with ESM causes the following error:
When I switch my project to CommonJS the problem is resolved.
I'm not sure if this is a bug or if I'm doing something wrong here.
Steps to reproduce
import { FlagdProvider } from '@openfeature/flagd-provider';
.I also created a simple example repo. Running
npm run build
shows the error.The text was updated successfully, but these errors were encountered: