You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is caused by package @angular/localize (10.1.5)
Is this a regression?
Yes, the previous version in which this bug was not present was: 10.1.4
Description
I18n extraction fails with the error "fs.relative is not a function".
The problem is with change angular/angular#39006 . It uses API from this commit: 1c4d358 . But this commit was merged only into v11.x.x. Not into 10.x.x. Therefore function "resolve" does not exist.
🔥 Exception or Error
ERROR in ./SubjectCommon/js/services/PaymentService.ts
Module build failed (from E:/reenio/master/src/ClientSide/node_modules/@angular-devkit/build-angular/src/extract-i18n/ivy-extract-loader.js):
TypeError: E:\reenio\master\src\ClientSide\Angular\projects\Subject\SubjectCommon\js\services\PaymentService.js: fs.relative is not a function
at getFileFromPath (E:\reenio\master\src\ClientSide\node_modules\@angular\localize\src\tools\src\source_file_utils.js:406:107)
at getLocation (E:\reenio\master\src\ClientSide\node_modules\@angular\localize\src\tools\src\source_file_utils.js:382:20)
at E:\reenio\master\src\ClientSide\node_modules\@angular\localize\src\tools\src\source_file_utils.js:182:60
at Array.map ()
at Object.unwrapMessagePartsFromTemplateLiteral (E:\reenio\master\src\ClientSide\node_modules\@angular\localize\src\tools\src\source_file_utils.js:182:34)
at PluginPass.TaggedTemplateExpression (E:\reenio\master\src\ClientSide\node_modules\@angular\localize\src\tools\src\extract\source_files\es2015_extract_plugin.js:24:69)
at newFn (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\visitors.js:175:21)
at NodePath._call (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\path\context.js:55:20)
at NodePath.call (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\path\context.js:42:17)
at NodePath.visit (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\path\context.js:92:31)
at TraversalContext.visitQueue (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\context.js:112:16)
at TraversalContext.visitSingle (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\context.js:84:19)
at TraversalContext.visit (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\context.js:140:19)
at Function.traverse.node (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\index.js:82:17)
at NodePath.visit (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\path\context.js:99:18)
at TraversalContext.visitQueue (E:\reenio\master\src\ClientSide\node_modules\@babel\traverse\lib\context.js:112:16)
@ ./SubjectCommon/js/controllers/credit/payment-result-controller.component.ts 4:0-86 6:0-75 40:167-184 41:181-195 57:28-42 67:38-55
@ ./SubjectCommon/js/controllers/credit/credit.module.ts
@ ./SubjectCommon/js/routes.ts
@ ./SubjectCommon/js/AppModule.ts
@ ./SubjectCommon/js/main.ts
@ multi ./SubjectCommon/js/main.ts
🐞 bug report
Affected Package
The issue is caused by package @angular/localize (10.1.5)Is this a regression?
Yes, the previous version in which this bug was not present was: 10.1.4Description
I18n extraction fails with the error "fs.relative is not a function".The problem is with change angular/angular#39006 . It uses API from this commit: 1c4d358 . But this commit was merged only into v11.x.x. Not into 10.x.x. Therefore function "resolve" does not exist.
🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: