-
Notifications
You must be signed in to change notification settings - Fork 70
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
ReactSdkContext - Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'. #190
Comments
Thanks @RyanMacBern . The |
I upgraded to the latest SDK and got an error in this file because I needed to add
My workaround is simply:
|
Hey @yusinto, our team here is running into this issue as well even though we don't have any code directly importing ReactSdkContext. We are only importing I'm able to fix the issue with the following patch:
|
Describe the bug
When importing
ReactSdkContext
into my app I receive an error message and the build fails:Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
To reproduce
Import
ReactSdkContext
. The workaround is to not import the type.Expected behavior
Should not break the build
Logs
Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
SDK version
v3.0.0 and above
Language version, developer tools
Webpack v5.70.0, CRA
OS/platform
MacOS Ventura 13.2.1
The text was updated successfully, but these errors were encountered: