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
Error: MomentLocalesPlugin: Moment.js doesn't include a locale you specified: ua. Check the plugins localesToKeep
option
#8012
Comments
locale sToKeep
option.localesToKeep
option.
localesToKeep
option.localesToKeep
option
@javadev Could you submit a PR to fix this, so that other Ukrainian users won't have the bug. Maybe we can patch this method:
Or maybe the UA locale should be renamed UK ? |
@PierreBesson I found this bug only for React not for Angular. |
I confirm the issue. Currently, we don't have the issue with Angular because the dependency For Angular:
For React:
Downgrading the |
- downgrade moment-locales-webpack-plugin to 1.0.5 - be consistent with Angular - fix jhipster#8012
Overview of the issue
I generated jhipster 5.1.0 + react application and can not build it on my pc.
Motivation for or Use Case
I think it happened because of my locale ua.
Reproduce the error
Generate jhipster 5.1.0 + react application. Setup locale ua. Try to build war file.
Related issues
moment/moment#2979
Suggest a Fix
Add somme dependency to javascript modules.
JHipster Version(s)
5.1.0
JHipster configuration
{
"generator-jhipster": {
"applicationType": "monolith",
"gitCompany": "",
"baseName": "jobsviewer",
"packageName": "io.github.jhipster.application",
"packageFolder": "io/github/jhipster/application",
"serverPort": 8080,
"serviceDiscoveryType": false,
"authenticationType": "jwt",
"uaaBaseName": "../uaa",
"cacheProvider": "hazelcast",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "postgresql",
"searchEngine": "elasticsearch",
"enableSwaggerCodegen": false,
"messageBroker": false,
"buildTool": "maven",
"useSass": true,
"clientPackageManager": "yarn",
"testFrameworks": [
"gatling"
],
"enableTranslation": true,
"nativeLanguage": "ru",
"languages": [
"ua",
"ru"
],
"clientFramework": "react",
"jhiPrefix": "jhi"
},
"git-provider": "GitLab",
"git-company": "javadev",
"repository-name": "jobsviewer"
}
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
Windows 10 64 bit.
The text was updated successfully, but these errors were encountered: