Когда я создаю свое приложение для производства с новой версией Jhipster, оно больше не сообщает мне точную строку ошибки в моем файле:
Ошибка выдается мне на этом шаге:
npm run webpack:prod
ERROR in src/main/webapp/app/admin/user-management/user-management-update.component.html(1,3972): Object is possibly 'null'.
src/main/webapp/app/admin/user-management/user-management-update.component.html(1,3677): Object is possibly 'null'.
src/main/webapp/app/admin/user-management/user-management-update.component.html(1,3833): Object is possibly 'null'.
Ошибки говорят мне хорошо, но строки (3972,3677,3833) не соответствуют тем в моем файле. И не только для этого конкретного c случая, но и для всех, кто выйдет во время разработки, мне нужно знать точную строку в моем файле.
Как я могу обнаружить ошибки в точной строке мои файлы?
node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "webpack/webpack.prod.js" "--profile"
(node:9047) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
Hash: 8de665ac5fd05610ed73
Version: webpack 4.41.2
Time: 4521ms
Built at: 2020-02-11 19:03:53
6 assets
Entrypoint polyfills = app/polyfills.8de665ac5fd05610ed73.bundle.js
Entrypoint global = content/global.b97cbe1779ef2c8c2587.css app/global.8de665ac5fd05610ed73.bundle.js
Entrypoint main = app/main.8de665ac5fd05610ed73.bundle.js
[0] ./src/main/webapp/app/polyfills.ts 0 bytes {2} [built]
factory:2344ms building:1835ms = 4179ms
[1] ./src/main/webapp/content/scss/global.scss 39 bytes {0} [built]
factory:2252ms building:414ms = 2666ms
[2] ./src/main/webapp/app/app.main.ts 0 bytes {1} [built]
factory:2344ms building:1836ms = 4180ms
+ 1 hidden module
ERROR in src/main/webapp/app/admin/user-management/user-management-update.component.html(1,3972): Object is possibly 'null'.
src/main/webapp/app/admin/user-management/user-management-update.component.html(1,3677): Object is possibly 'null'.
src/main/webapp/app/admin/user-management/user-management-update.component.html(1,3833): Object is possibly 'null'.