When generating entity code in JHipster, it's possible that certain imports, such as import MenuItem from 'app/shared/layout/menus/';, are inadvertently removed. #28855
Labels
area: bug 🐛
$$ bug-bounty $$
https://www.jhipster.tech/bug-bounties/
theme: react
$100
https://www.jhipster.tech/bug-bounties/
Overview of the issue
When generating entity code in JHipster, it's possible that certain imports, such as import MenuItem from 'app/shared/layout/menus/';, are inadvertently removed.
import React from 'react';
const EntitiesMenu = () => {
return (
<>
{/* prettier-ignore /}
{/ jhipster-needle-add-entity-to-menu - JHipster will add entities to the menu here */}
</>
);
};
export default EntitiesMenu;
JHipster info
Welcome to JHipster v8.9.0
(node:8541) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)Welcome to the JHipster Information Sub-Generator
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "21.0.4" 2024-07-16
OpenJDK Runtime Environment Homebrew (build 21.0.4)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.4, mixed mode, sharing)
git version 2.46.0
node: v22.6.0
npm: 10.8.2
Docker version 25.0.3, build 4debf41
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Congratulations, JHipster execution is complete!
If you find JHipster useful consider sponsoring the project https://www.jhipster.tech/sponsors/
Thanks for using JHipster!
jhipster info
output is mandatory for bug reports. This will allow us to use automated tests and genarate the broken sample usingjhipster from-issue
command.Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)
v8.9.0
Browsers and Operating System
The text was updated successfully, but these errors were encountered: