Romanchuk / angular-i18next

angular v10+ integration with i18next v19.4+
MIT License
131 stars 33 forks source link

Unit test run error #95

Closed marcovmun closed 1 year ago

marcovmun commented 1 year ago

When updating to 14.1.0 from 14.0.5 I got this error when running my unit tests with ng test.

An error was thrown in afterAll Uncaught ReferenceError: require is not defined ReferenceError: require is not defined at Module.82083 (http://localhost:9876/_karma_webpack_/webpack:/node_modules/.pnpm/angular-i18next@14.1.0_szl6vkehnoy2g5kp33txygyxui/node_modules/angular-i18next/fesm2015/angular-i18next.mjs:272:17) at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap:19:1) at Module.95083 (http://localhost:9876/_karma_webpack_/main.js:3394:73) at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap:19:1) at Module.55947 (http://localhost:9876/_karma_webpack_/main.js:208:97) at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap:19:1) at Module.29011 (http://localhost:9876/_karma_webpack_/main.js:13:72) at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap:19:1) at webpackContext (http://localhost:9876/_karma_webpack_/webpack:/src/ sync \.spec\.ts$:649:1) at Array.map (<anonymous>)

i18next: 21.10.0 i18next-http-backend: 1.4.5 Angular: 14.2.11

Romanchuk commented 1 year ago

It might be issue #91 It is fixed, but in beta version for now. I'll release stable version soon

Romanchuk commented 1 year ago

@marcovmun Stable version 14.2.0 released!

marcovmun commented 1 year ago

Thanks, build succeed again tonight with 14.2