Sonar-l10n-zh blocking SonarQube-9.2

  • version used: SonarQube-9.2[.1] sonar-l10n-zh 9.1 - 9.2
  • error observed: after install sonar-l10n-zh into extensions/plugins directory, sonarqube will blocking on the loading page, browser console shows Application failed to start! Error: Dynamic require of "react-intl/locale-data/zh" is not supported
  • steps to reproduce: install sonar-l10n-zh and restart sonarQube
  • potential workaround: uninstall sonar-l10n-zh

Here is many people met this error.
https://github.com/xuhuisheng/sonar-l10n-zh/issues/49

The error log comes from < https://github.com/SonarSource/sonarqube/blob/master/server/sonar-web/src/main/js/helpers/l10n.ts#L153>

Should we package react-intl/locale-data/zh into web releasing? or let it could import dynamicly? Here is full log from web console.

Application failed to start! Error: Dynamic require of "react-intl/locale-data/zh" is not supported
    C9e outZA7ASMV3.js:1
    <anonymous> l10n.ts:153
index.ts:105:10
    con index.ts:105
    <anonymous> index.ts:39

Same behavior with sonar-l10n-ru plugin, but with message:
Application failed to start! Error: Dynamic require of "react-intl/locale-data/ru" is not supported

Hi, thanks to both of you for reporting this.

I’ve created a ticket and we’ll fix it ASAP.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

Hi,

Sorry for the late notice. This got fixed and released as part of 9.2.2, I believe. It will also be included in 9.3.

 
Ann

2 Likes