Skip to content
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

baseName can't have capital letters when use microfrontend #20986

Closed
1 task
paris0120 opened this issue Jan 31, 2023 · 1 comment · Fixed by #25974
Closed
1 task

baseName can't have capital letters when use microfrontend #20986

paris0120 opened this issue Jan 31, 2023 · 1 comment · Fixed by #25974

Comments

@paris0120
Copy link

paris0120 commented Jan 31, 2023

Overview of the issue

Can't use capital letters in baseName, for example "baseName" when use microfront end or will get errors like


Error: Error parsing file webpack/webpack.microfrontend.js: SyntaxError: Unexpected token, expected "," (79:14)
  77 |       }),
  78 |       new DefinePlugin({
> 79 |         BASE NAME_I18N_RESOURCES_PREFIX: JSON.stringify(''),
     |              ^
  80 |       }),
  81 |
  82 |     ],

Motivation for or Use Case

Use CamelCase for baseName

Reproduce the error

Use word with capital letters in the middle as baseName, such as "baseName"

Related issues
Suggest a Fix

Separate names with underlines.

JHipster Version(s)

7.9.3

JHipster configuration
application {
  config {
    baseName baseName,
    serverPort 8081,
    applicationType microservice,
    authenticationType oauth2,
    databaseType sql,
    prodDatabaseType mysql,
    devDatabaseType mysql,
    clientFramework react,
    testFrameworks [cypress],
    serviceDiscoveryType consul,
    cacheProvider redis,
    buildTool maven,
    reactive true,
    messageBroker kafka
  } 
}
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)
@3amroSalem
Copy link

3amroSalem commented Aug 13, 2023

Um facing the same issue.
Error parsing file webpack/webpack.microfrontend.js: SyntaxError: Unexpected token, expected "," (79:16)
77 | }),
78 | new DefinePlugin({

79 | AUTHOR LEDGE_I18N_RESOURCES_PREFIX: JSON.stringify(''),
| ^
80 | }),
81 |
82 | ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants