- 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