Excessive HttpClient logging and deprecation warnings
Opened this issue · 2 comments
mraible commented
Overview of the issue
I created an app with JHipster v8.8.0 and started it. There's a warning at the beginning:
(node:26224) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
There's lots of Sass warnings:
[INFO] Initial chunk files | Names | Raw size
[INFO] styles.css | styles | 281.88 kB |
[INFO] polyfills.js | polyfills | 116.93 kB |
[INFO] vendor.js | vendor | 32.36 kB |
[INFO] runtime.js | runtime | 12.28 kB |
[INFO] vendor.js | vendor | 32.36 kB |
[INFO] main.js | main | 874 bytes |
[INFO] ./src/main/webapp/content/scss/global.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO]
[INFO] Deprecation Warning on line 0, column 8 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/content/scss/global.scss:0:8:
[INFO] Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
[INFO] | Initial total | 444.32 kB
[INFO]
[INFO]
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO] Lazy chunk files | Names | Raw size
[INFO]
[INFO] src_main_webapp_bootstrap_ts.js | bootstrap | 5.47 MB |
[INFO] src_main_webapp_app_admin_metrics_metrics_component_ts.js | metrics-metrics-component | 180.66 kB |
[INFO] 0 | @import 'bootstrap-variables';
[INFO]
[INFO]
[INFO] src/main/webapp/content/scss/global.scss 1:9 root stylesheet
[INFO]
[INFO] src_main_webapp_app_layouts_navbar_navbar_component_ts.js | layouts-navbar-navbar-component | 165.84 kB |
[INFO]
[INFO] ./src/main/webapp/content/scss/global.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO] default-src_main_webapp_app_core_util_data-util_service_ts.js | list-post-component | 69.44 kB |
[INFO] Deprecation Warning on line 1, column 8 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/content/scss/global.scss:1:8:
[INFO] src_main_webapp_app_entities_blog_list_blog_component_ts.js | list-blog-component | 49.09 kB |
[INFO] Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
[INFO]
[INFO] src_main_webapp_app_entities_post_list_post_component_ts.js | list-post-component | 46.38 kB |
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO] src_main_webapp_app_entities_admin_authority_list_authority_component_ts.js | list-authority-component | 43.43 kB |
[INFO]
[INFO] 1 | @import 'bootstrap/scss/functions';
[INFO] src_main_webapp_app_entities_tag_list_tag_component_ts.js | list-tag-component | 38.88 kB |
[INFO]
[INFO]
[INFO] default-src_main_webapp_app_config_pagination_constants_ts-src_main_webapp_app_core_util_pars-a2abf2.js | list-post-component | 36.49 kB |
[INFO] src/main/webapp/content/scss/global.scss 2:9 root stylesheet
[INFO]
[INFO]
[INFO] src_main_webapp_app_entities_post_update_post-update_component_ts.js | update-post-update-component | 36.29 kB |
[INFO] ./src/main/webapp/content/scss/global.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO] src_main_webapp_app_admin_configuration_configuration_component_ts.js | configuration-configuration-component | 33.70 kB |
[INFO] Deprecation Warning on line 2, column 8 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/content/scss/global.scss:2:8:
[INFO] src_main_webapp_app_admin_logs_logs_component_ts.js | logs-logs-component | 33.02 kB |
[INFO] Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
[INFO] src_main_webapp_app_entities_blog_update_blog-update_component_ts.js | update-blog-update-component | 31.33 kB |
[INFO]
[INFO] src_main_webapp_app_admin_health_health_component_ts.js | health-health-component | 29.40 kB |
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO] src_main_webapp_app_entities_tag_update_tag-update_component_ts.js | update-tag-update-component | 23.18 kB |
[INFO] common.js | common | 20.35 kB |
[INFO]
[INFO] src_main_webapp_app_entities_post_detail_post-detail_component_ts.js | detail-post-detail-component | 18.93 kB |
[INFO] 2 | @import 'bootstrap/scss/variables';
[INFO] src_main_webapp_app_home_home_component_ts.js | home-home-component | 18.17 kB |
[INFO]
[INFO] src_main_webapp_app_entities_admin_authority_update_authority-update_component_ts.js | update-authority-update-component | 18.00 kB |
[INFO]
[INFO] src_main_webapp_app_entities_tag_detail_tag-detail_component_ts.js | detail-tag-detail-component | 13.29 kB |
[INFO] src/main/webapp/content/scss/global.scss 3:9 root stylesheet
[INFO] src_main_webapp_app_entities_blog_detail_blog-detail_component_ts.js | detail-blog-detail-component | 12.99 kB |
[INFO]
[INFO]
[INFO] ./src/main/webapp/content/scss/global.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO] src_main_webapp_app_entities_admin_authority_authority_routes_ts.js | admin-authority-authority-routes | 8.70 kB |
[INFO] Deprecation Warning on line 29, column 20 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/content/scss/global.scss:29:20:
[INFO] src_main_webapp_app_entities_admin_authority_detail_authority-detail_component_ts.js | detail-authority-detail-component | 8.55 kB |
[INFO] Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
[INFO] src_main_webapp_app_layouts_error_error_component_ts.js | error-component | 6.10 kB |
[INFO] Use color.mix instead.
[INFO] src_main_webapp_app_entities_post_post_routes_ts.js | post-post-routes | 5.90 kB |
[INFO] src_main_webapp_app_entities_tag_tag_routes_ts.js | tag-tag-routes | 5.43 kB |
[INFO]
[INFO] src_main_webapp_app_entities_blog_blog_routes_ts.js | blog-blog-routes | 5.25 kB |
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO] src_main_webapp_app_admin_admin_routes_ts.js | admin-admin-routes | 2.31 kB |
[INFO]
[INFO] src_main_webapp_app_admin_docs_docs_component_ts.js | docs-docs-component | 2.26 kB |
[INFO] 29 | background-color: mix($dropdown-link-hover-bg, $dropdown-link-active-bg, 50%);
[INFO] src_main_webapp_app_entities_entity_routes_ts.js | entities-entity-routes | 2.20 kB |
[INFO]
[INFO] Build at: 2024-12-24T23:30:56.466Z - Hash: 483efc48977d3337 - Time: 9532ms
[INFO]
[INFO]
[INFO] src/main/webapp/content/scss/global.scss 30:21 root stylesheet
[INFO]
[INFO]
[INFO] ./src/main/webapp/content/scss/vendor.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO] Deprecation Warning on line 7, column 8 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/content/scss/vendor.scss:7:8:
[INFO] Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
[INFO]
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO]
[INFO] 7 | @import 'bootstrap-variables';
[INFO]
[INFO]
[INFO] src/main/webapp/content/scss/vendor.scss 8:9 root stylesheet
[INFO]
[INFO]
[INFO] ./src/main/webapp/content/scss/vendor.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO] Deprecation Warning on line 9, column 8 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/content/scss/vendor.scss:9:8:
[INFO] Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
[INFO]
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO]
[INFO] 9 | @import 'bootstrap/scss/bootstrap';
[INFO]
[INFO]
[INFO] src/main/webapp/content/scss/vendor.scss 10:9 root stylesheet
[INFO]
[INFO]
[INFO] ./src/main/webapp/app/admin/docs/docs.component.scss?ngResource - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO] Deprecation Warning on line 0, column 8 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/app/admin/docs/docs.component.scss:0:8:
[INFO] Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
[INFO]
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO]
[INFO] 0 | @import 'bootstrap/scss/functions';
[INFO]
[INFO]
[INFO] src/main/webapp/app/admin/docs/docs.component.scss 1:9 root stylesheet
[INFO]
[INFO]
[INFO] ./src/main/webapp/app/admin/docs/docs.component.scss?ngResource - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO] Deprecation Warning on line 1, column 8 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/app/admin/docs/docs.component.scss:1:8:
[INFO] Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
[INFO]
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO]
[INFO] 1 | @import 'bootstrap/scss/variables';
[INFO]
[INFO]
[INFO] src/main/webapp/app/admin/docs/docs.component.scss 2:9 root stylesheet
[INFO]
[INFO]
[INFO] ./src/main/webapp/app/layouts/navbar/navbar.component.scss?ngResource - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO] Deprecation Warning on line 0, column 8 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/app/layouts/navbar/navbar.component.scss:0:8:
[INFO] Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
[INFO]
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO]
[INFO] 0 | @import 'bootstrap/scss/functions';
[INFO]
[INFO]
[INFO] src/main/webapp/app/layouts/navbar/navbar.component.scss 1:9 root stylesheet
[INFO]
[INFO]
[INFO] ./src/main/webapp/app/layouts/navbar/navbar.component.scss?ngResource - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
[INFO] Deprecation Warning on line 1, column 8 of file:///Users/mraible/Downloads/blog-oauth2/src/main/webapp/app/layouts/navbar/navbar.component.scss:1:8:
[INFO] Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
[INFO]
[INFO] More info and automated migrator: https://sass-lang.com/d/import
[INFO]
[INFO] 1 | @import 'bootstrap/scss/variables';
[INFO]
[INFO]
[INFO] src/main/webapp/app/layouts/navbar/navbar.component.scss 2:9 root stylesheet
And there's lots of logging from HttpClientImpl
after it starts.
Motivation for or Use Case
Brand-new apps should not have excessive logging or deprecation warnings.
Reproduce the error
jhipster jdl blog-oauth2
JHipster Version(s)
blog@0.0.1-SNAPSHOT /Users/mraible/Downloads/blog-oauth2
└── generator-jhipster@8.8.0
JHipster configuration, a .yo-rc.json
file generated in the root folder
.yo-rc.json file
{ "generator-jhipster": { "applicationType": "monolith", "authenticationType": "oauth2", "baseName": "blog", "buildTool": "maven", "cacheProvider": "ehcache", "clientFramework": "angular", "entities": [ "Blog", "Post", "Tag" ], "jhipsterVersion": "8.8.0", "languages": [ "en" ], "lastLiquibaseTimestamp": 1735083099000, "nativeLanguage": "en", "packageName": "com.jhipster.demo.blog", "prodDatabaseType": "mysql", "skipUserManagement": true, "testFrameworks": [ "cypress" ] } }
Environment and Tools
openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment Temurin-17.0.13+11 (build 17.0.13+11)
OpenJDK 64-Bit Server VM Temurin-17.0.13+11 (build 17.0.13+11, mixed mode, sharing)
git version 2.39.5 (Apple Git-154)
node: v22.11.0
npm: 11.0.0
Docker version 27.3.1, build ce12230
JDL for the Entity configuration(s) entityName.json
files generated in the .jhipster
directory
JDL entity definitions
@ChangelogDate("20241224232939") entity Blog { name String required minlength(3) handle String required minlength(2) } @ChangelogDate("20241224233039") entity Post { title String required content TextBlob required date Instant required } @ChangelogDate("20241224233139") entity Tag { name String required minlength(2) } relationship ManyToOne { Blog{user(login)} to User with builtInEntity Post{blog(name)} to Blog } relationship ManyToMany { Post{tag(name)} to Tag{entry} } search Blog, Post, Tag with no paginate Post, Tag with infinite-scroll
mshima commented
punycode
is a transient dependency of eslint. No fix is planned, eslint/eslint#19007, eslint/eslint#18947, eslint/eslint#17720.
% npm ls punycode
└─┬ eslint@9.17.0
└─┬ ajv@6.12.6
└─┬ uri-js@4.4.1
└── punycode@2.3.1
mshima commented