Closed molekola-io closed 9 months ago
An update: I completely rebuild the application, after switching to the node LTS version: 20.10.0, but the error remains. This is the angular error:
[error] Error: Cannot find module '@angular-architects/module-federation/webpack'
Require stack:
- /myproject/webpack/webpack.microfrontend.js
- /myproject/webpack/webpack.custom.js
- /myproject/node_modules/@angular-builders/custom-webpack/dist/utils.js
- /myproject/node_modules/@angular-builders/custom-webpack/dist/custom-webpack-builder.js
- /myproject/node_modules/@angular-builders/custom-webpack/dist/transform-factories.js
- /myproject/node_modules/@angular-builders/custom-webpack/dist/browser/index.js
- /myproject/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
- /myproject/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/index.js
- /myproject/node_modules/@angular/cli/src/command-builder/architect-base-command-module.js
- /myproject/node_modules/@angular/cli/src/command-builder/architect-command-module.js
- /myproject/node_modules/@angular/cli/src/commands/build/cli.js
- /myproject/node_modules/@angular/cli/src/commands/command-config.js
- /myproject/node_modules/@angular/cli/src/command-builder/command-runner.js
- /myproject/node_modules/@angular/cli/lib/cli/index.js
- /myproject/node_modules/@angular/cli/lib/init.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (/myproject/webpack/webpack.microfrontend.js:1:40)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
Duplicate of https://github.com/jhipster/generator-jhipster/issues/24745. See PR that fixes it at https://github.com/jhipster/generator-jhipster/pull/24747.
Thanks and sorry for the duplication!
Overview of the issue
./gradlew
husky - Git hooks installed
up to date, audited 2325 packages in 12s
336 packages are looking for funding run
npm fund
for details18 moderate severity vulnerabilities
To address all issues (including breaking changes), run: npm audit fix --force
Run
npm audit
for details.FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':webapp'.
Try:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 41s 7 actionable tasks: 5 executed, 2 up-to-date##### Motivation for or Use Case
Reproduce the error
I run the jhipster command and after the generation complete, i registered the reported error
Related issues
I didn't find any related issues
Suggest a Fix
I don't know how to fix, is my first time with JHipster
JHipster Version(s)
JHIpster 8.1.0
JHipster configuration
jhipster info WARNING! Since JHipster v8, the jhipster command will not use the locally installed generator-jhipster. If you want to execute the locally installed generator-jhipster, run: npx jhipster (node:24463) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created)██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║ ╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗ ╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝ https://www.jhipster.tech Welcome to JHipster v8.1.0
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.1" 2023-10-17 OpenJDK Runtime Environment Homebrew (build 21.0.1) OpenJDK 64-Bit Server VM Homebrew (build 21.0.1, mixed mode, sharing)
git version 2.39.3 (Apple Git-145)
node: v21.2.0 npm: 10.2.3
Docker version 24.0.6, build ed223bc
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/
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
Mac os x Sonoma 14