Hi, I am using angular2 for developing web application. Used below seed project. https://github.com/gevgeny/angular2-webpack-starter-and-angular2-highcharts
I am going to implement i18n(Multi language support) (Link :https://angular.io/docs/ts/latest/cookbook/i18n.html). I performed below steps : 1) Execute command - npm install @angular/compiler-cli @angular/platform-server --save 2) Execute command "./node_modules/.bin/ng-xi18n" 1) For first step command execution got below logs npm install @angular/compiler-cli @angular/platform-server --save +-- UNMET PEER DEPENDENCY [email protected] `-- UNMET PEER DEPENDENCY [email protected] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch" :"any"} (current: {"os":"win32","arch":"x64"}) npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed. npm WARN [email protected] requires a peer of tslint@^3.9.0 but none was installed. npm WARN [email protected] requires a peer of @angular/compiler@~2.2.0 but none was installed. npm WARN [email protected] requires a peer of @angular/core@~2.2.0 but none was installed. npm WARN [email protected] requires a peer of tslint@^3.0.0 but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. 2) For 2nd step command got below error : I get below error when execute command ng-xi18n C:\Projects\temp\PathTrak3\PathTrak>"./node_modules/.bin/ng-xi18n" TypeError: Cannot read property 'create' of undefined at Function.Extractor.create (C:\Projects\temp\PathTrak3\PathTrak\node_modules\@angular\compiler-cli\src\extractor .js:69:45) at extract (C:\Projects\temp\PathTrak3\PathTrak\node_modules\@angular\compiler-cli\src\extract_i18n.js:7:34) at Object.main (C:\Projects\temp\PathTrak3\PathTrak\node_modules\@angular\tsc-wrapped\src\main.js:47:16) at Object.<anonymous> (C:\Projects\temp\PathTrak3\PathTrak\node_modules\@angular\compiler-cli\src\extract_i18n.js: 14:9) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) Extraction failed Please find the attached package.json file. Is it due to version i am using . Kindly suggest. Thanks, Sardar Nale -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
package.json
Description: application/json
