Uncaught TypeError: util.inherits is not a function
stormit-vn opened this issue · 1 comments
I am getting below error when using with webpack bundle
angular: 6.1.7
webpack: 4.17.1
messageformat: 2.0.4
ngx-translate-messageformat-compiler: 4.3.0
@biesbjerg/ngx-translate-extract: 2.3.4
Uncaught TypeError: util.inherits is not a function
at Object.eval (assert.js:160)
at eval (assert.js:490)
at eval (assert.js:1)
at Object../node_modules/assert/assert.js (main.bundle.js:2362)
at webpack_require (main.bundle.js:65)
at eval (reserved-words.js:1)
at eval (reserved-words.js:1)
at Object../node_modules/reserved-words/lib/reserved-words.js (main.bundle.js:7568)
at webpack_require (main.bundle.js:65)
at eval (index.js:1)
at eval (index.js:1)
at Object../node_modules/reserved-words/lib/index.js (main.bundle.js:7557)
at webpack_require (main.bundle.js:65)
at eval (compiler.js:1)
at eval (compiler.js:1)
at Object../node_modules/messageformat/lib/compiler.js (main.bundle.js:2784)
at webpack_require (main.bundle.js:65)
at eval (messageformat.js:1)
at eval (messageformat.js:1)
at Object../node_modules/messageformat/lib/messageformat.js (main.bundle.js:2850)
at webpack_require (main.bundle.js:65)
at eval (ngx-translate-messageformat-compiler.js:8)
at eval (ngx-translate-messageformat-compiler.js:1)
at Module../node_modules/ngx-translate-messageformat-compiler/esm5/ngx-translate-messageformat-compiler.js (main.bundle.js:7283)
at webpack_require (main.bundle.js:65)
at eval (app.module.ts:22)
at eval (app.module.ts:1)
at Object../src/app/app.module.ts (main.bundle.js:10254)
at webpack_require (main.bundle.js:65)
at eval (index.ts:1)
at eval (index.ts:1)
at Object../src/app/index.ts (main.bundle.js:10822)
at webpack_require (main.bundle.js:65)
at eval (main.browser.ts:11)
at eval (main.browser.ts:1)
at Object../src/main.browser.ts (main.bundle.js:14411)
at webpack_require (main.bundle.js:65)
at eval (webpack://ac_%5Bname%5D/multi_(:8080/webpack)-dev-server/client?:2:18)
at Object.1 (main.bundle.js:14422)
at webpack_require (main.bundle.js:65)
at main.bundle.js:198
at main.bundle.js:201
I'm sorry, but you'll have to have to expend more effort than that if you want help. Remember this is everyone's free time... Feel free to reopen when you've done all you can to figure out a cause, when you're confident that this is the fault of this library and when you have a minimal reproduction.