-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
@swc/plugin-formatjs support for rich-text elements in messages with german characters #367
Comments
@kdy1 considering your comment your goal is to maintain this plugin. May I ask on how you define maintenance in general? As I do not see much of active support here. I'm very well aware that people have their own business to do and can not immediately jump on bug fixes. But It would be nice to have some sort of acknowledgement or some feedback if there is information missing to you tackling this bugfix. Thank you in advance |
It's mainly about making it usable with recent versions of |
Your reproduction is way too big to investigate. Ideally it should have only |
I understand that the reproduction environment isn’t the smallest, but let me make this clear:
Ultimately, this comes down to communication. The fact that you responded to my sharper comment within minutes suggests you were already aware of the bug. Instead of addressing it earlier, however, it seems the issue was ignored -despite the significant effort invested by an engineer to explain it and provide a reproducible environment. Honestly, this leaves a rather unpleasant aftertaste. |
Yeah, I admit that I forgot about the issue after reading it when the issue was filed. That‘s why I talked about the reproduction. I’m sorry about that. But I have lots of things to do, and I need to handle things with higher priority first. This issue can’t be prioritized because this issue does not impact lots of users. I can review/accept PR and I always tries to ensure contributors don’t get blocked by me by reviewing all PRs asap, but I can’t work on all issues right away. I just don’t have resources to put into it. It’s not just me. All open source maintainers have similar problem. If you want, I can ask community about assigning some sort of bounties to the issues so there it can be taken by external contributors. But even you put bounties on this issue, I’ll prioritize issues impacting more users, issues which are more fundamental to usages, issues impacting stable APIs, or issues that are impacting production. That’s the thing OSS project maintainers should do. |
I'm also running into this issue, which is blocking us from upgrading SWC... I can provide a smaller reproducible if that's any helpful as well! |
I am also experiencing the same issue with special characters.
Where in my example, the quotation is the breaking character. I was able to reproduce this within the existing test suite by utilising a special char. Example 1 (
Example 2. (
I don't have the expertise to send over a patch |
Im facing the same issue unfortunately - this forces me to stick to babel right now :( |
Trying to summon a developer that worked on the former swc compatible plugin |
Using version## Which package?
"@swc/plugin-formatjs": "^1.0.1",
Describe the bug
We migrated our application using from babel -> babel-plugin-formatjs plugin to swc -> @swc/plugin-formatjs and had
FormattedMessage
components like the following documentation described in place: https://formatjs.github.io/docs/react-intl/components#rich-text-formattingOur example:
However when using swc as the plugin I get the following error:
We figured that it has something to do with the characters in the wrapped component, because something like this does work:
Expected behavior
This feature should be supported regardless of the characters in the wrapped rich-text
Reproducible env
I do have a reproducible repo setup, under:
https://github.com/MarcoLeko/rspack-can-not-read-property-of-undefined
Steps to reproduce:
npm ci
npm run rspack:dev:server
=> Experience crash
If you change the translation and remove
ööö
in the translation the server will not crashThe text was updated successfully, but these errors were encountered: