{"action":"closed","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8159","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8159/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8159/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8159/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/8159","id":354078219,"node_id":"MDU6SXNzdWUzNTQwNzgyMTk=","number":8159,"title":"yarn run webpack:prod issue after upgrade to v5.2.1","user":{"login":"carrotagileit","id":3918335,"node_id":"MDQ6VXNlcjM5MTgzMzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3918335?v=4","gravatar_id":"","url":"https://api.github.com/users/carrotagileit","html_url":"https://github.com/carrotagileit","followers_url":"https://api.github.com/users/carrotagileit/followers","following_url":"https://api.github.com/users/carrotagileit/following{/other_user}","gists_url":"https://api.github.com/users/carrotagileit/gists{/gist_id}","starred_url":"https://api.github.com/users/carrotagileit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carrotagileit/subscriptions","organizations_url":"https://api.github.com/users/carrotagileit/orgs","repos_url":"https://api.github.com/users/carrotagileit/repos","events_url":"https://api.github.com/users/carrotagileit/events{/privacy}","received_events_url":"https://api.github.com/users/carrotagileit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-26T08:50:27Z","updated_at":"2018-08-26T09:39:16Z","closed_at":"2018-08-26T09:39:16Z","author_association":"NONE","body":"<!--\r\n- Please follow the issue template below for bug reports.\r\n- If you have a support request rather than a bug, please use [Stack Overflow](http://stackoverflow.com/questions/tagged/jhipster) with the JHipster tag.\r\n- For bug reports, it is mandatory to run the command `jhipster info` in your project's root folder, and paste the result here.\r\n- Tickets opened without any of these pieces of information will be **closed** without any explanation.\r\n-->\r\n\r\nAfter upgrading my project to v5.2.1, trying to pack the production version. when run \r\n\r\nyarn run webpack:prod\r\n\r\nthe error throws: **ERROR in Error during template compile of 'Injectable'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\n\r\ncannot pack to production war. However, can be run ok in develop mod, I man yarn start.\r\n\r\n\r\n<!-- Explain why this is a bug for you -->\r\n\r\nyarn run v1.9.4\r\n$ yarn run cleanup && yarn run webpack:prod:main && yarn run clean-www\r\n$ rimraf target/{aot,www}\r\n$ yarn run webpack --config webpack/webpack.prod.js --profile\r\n$ node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js --config webpack/webpack.prod.js --profile\r\n(node:38724) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead\r\nHash: 66f6b055aa6560092913\r\nVersion: webpack 4.8.0\r\nTime: 19316ms\r\nBuilt at: 2018-08-26 16:41:55\r\n 7 assets\r\nEntrypoint polyfills = app/polyfills.66f6b055aa6560092913.bundle.js\r\nEntrypoint global = app/global.66f6b055aa6560092913.bundle.js content/global-sass.66f6b055aa6560092913.css\r\nEntrypoint main = app/main.66f6b055aa6560092913.bundle.js\r\n[0] ./src/main/webapp/app/app.main.ts 0 bytes {0} [built]\r\n    factory:11232ms building:7176ms = 18408ms\r\n[1] ./src/main/webapp/app/polyfills.ts 0 bytes {2} [built]\r\n    factory:11229ms building:7136ms = 18365ms\r\n[5] ./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/sass-loader/lib/loader.js!./src/main/webapp/content/scss/global.scss 2.15 KiB [built]\r\n    [6] -> factory:1563ms building:6636ms = 8199ms\r\n[6] ./src/main/webapp/content/scss/global.scss 41 bytes [built]\r\n    + 3 hidden modules\r\n\r\n**ERROR in Error during template compile of 'Injectable'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'Injectable'**\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'Injectable'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'Injectable'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'Injectable'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'Injectable'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'Injectable'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'Injectable'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'NgModule'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'Injectable'\r\n  Function calls are not supported in decorators but 'ɵmakeDecorator' was called.\r\nError during template compile of 'NgModule'\r\n\r\n<!-- For bug reports, an unambiguous set of steps to reproduce the error -->\r\n\r\n\r\n\r\n<!-- If you can't fix the bug yourself, perhaps you can point to what might be\r\n  causing the problem (line of code or commit) -->\r\n\r\n\r\n\r\n<!--\r\nWhich version of JHipster are you using, is it a regression?\r\n-->\r\n\r\n\r\n<!--\r\nTo provide all information we need, you should run `jhipster info` in the project root folder, and\r\ncopy/paste the result here.\r\nThe `.yo-rc.json` file generated in the root folder is mandatory for bug reports. This will help us to replicate the scenario.\r\nYou should remove any sensitive information like the rememberMe key or the jwtSecretKey key.\r\n-->\r\n\r\n\r\n\r\n<!--\r\nIf the error is during an entity creation or associated with a specific entity.\r\nIf you are using JDL, please share that configuration as well.\r\n-->\r\nJhipster version: v5.2.1\r\nWindows 10 Pro OS\r\n\r\n<!-- What OS are you on? is this a problem with all browsers or only IE8? -->\r\n\r\n- [ ] Checking this box is mandatory (this is just to show you read everything)\r\n\r\n<!-- Love JHipster? Please consider supporting our collective:\r\n👉  https://opencollective.com/generator-jhipster/donate -->\r\n"}}
{"actor":{"display_login":"deepu105"}}