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
Bug: Cr(...).__exportStar is not a function #12493
Comments
Can you try replace these two files from #12485, and see if it fixes you problem? |
@fisker I had the same issue
Replacing those two files didn't make any difference. Reverting to version 2.5.1 worked fine. |
It's fine, I can look into this later. |
If you can simply |
@fisker I take it you'd like me to post my webpack.config.js so here it is. I'm using CRA.
|
@chassteel Do you consume commonjs version? Can you provide code how you do it? |
@alexander-akait Here's the import syntax:
Is that what you wanted? |
I didn't notice you are not the one opens this issue. |
Sorry to jump in. I was trying to be helpful. |
@fisker I will try tomorrow, thanks a lot for helping out 🙏🏻 |
@fisker Did not work entirely, I have a similar error but somewhere else: |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
See prettier/prettier#12493 This reverts commit 149a747.
This comment was marked as off-topic.
This comment was marked as off-topic.
Can someone please try to replace |
@fisker replacing |
@fisker apologies for the delay - that file doesn't seem to fix the issue for me. See screenshot. The app is actually public if you want to try it out yourself. |
@recurser Thanks for your feedback. |
@recurser Which file did you try? |
@fisker this one:
It looks like something was caching though - if I blow away the entire repo, re-clone and rebuild, then your fix works 🎉 sorry for the confusion! In case you want to reproduce it:
|
@recurser Thank you! I've cloned the repo, was going to test.. |
I believe #12511 should fix your problems. To test it, replace your Welcome to feedback. |
@fisker that works for me 🎉 |
will this fix be in 2.6.1? edit: above
|
Amazing, thanks a lot for looking into it ❤️ |
@brianzinn I can't help without details. |
@fisker that was just to indicate that more files may be needed. i brought in 'parser-typescript' from that netlify deploy and then it was working. May have been due to gatsby caching, but is currently working. Thanks for publishing the preview. |
I start to release 2.6.1. /cc @fisker |
Sorry, didn't see this. |
Okay, my release script has been rejected by diff between local and remote. But no problem. I'll try to release again. |
done |
@fisker I've upgraded to v2.6.1 and all works well - appreciate the quick work here! 👏 |
Environments:
Context
Since 2.6.0, it seems Prettier can not be bundled with webpack, it throws this error
Received: "Cr(...).__exportStar is not a function"
(not at compile time but usage time).I saw there was a change to esbuild, might be that?
Steps to reproduce:
Hard to say at this point I'm just reporting as I found out.
The text was updated successfully, but these errors were encountered: