Skip to content
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

is typescript "export all as x" syntax supported in 4.0.0-next.98? #9691

Closed
tylim88 opened this issue Sep 24, 2020 · 4 comments
Closed

is typescript "export all as x" syntax supported in 4.0.0-next.98? #9691

tylim88 opened this issue Sep 24, 2020 · 4 comments

Comments

@tylim88
Copy link

tylim88 commented Sep 24, 2020

according to #9128, it should be supported in 4.0

when I tried out the 4.0.0-next.98, it seems like no sign of supporting it, still error as usual

code example

@amankkg
Copy link

amankkg commented Sep 25, 2020

The problem is not with TypeScript but with @babel/preset-env which is used by react-scripts. Just override its config with @babel/plugin-proposal-export-namespace-from plugged in and it should work.

Issue to track babel/babel#11363

Duplicate of #8760

@tylim88
Copy link
Author

tylim88 commented Sep 25, 2020

anyway to override without rewire or eject?

@amankkg
Copy link

amankkg commented Sep 25, 2020

@tylim88 no, there is not, but I personally prefer craco over rewire

UPD: craco doesn't support CRA v4 dilanx/craco#205

@patricklafrance
Copy link

patricklafrance commented Dec 8, 2020

@amankkg should work now with the release of https://github.com/gsoft-inc/craco/releases/tag/v6.0.0 :)

@tylim88 tylim88 closed this as completed May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants