我嘗試了許多使用ng-xi18n的解決方案。Angular2 ng-xi18n:不起作用
我已經完成的步驟是卸載/刪除node_modules並使用npm install --save @ angular/cli再次安裝angular-cli。並用最後一步npm安裝來獲得依賴關係。
但是每次我執行npm run i18n,我都會收到一個錯誤。
的package.json:
{
...
"i18n": "ng-xi18n --i18nFormat=xmb",
...
},
"devDependencies": {
"@angular/cli": "^1.0.0-rc.4",
"@angular/compiler-cli": "^2.4.0",
"@types/jasmine": "2.5.38",
"@types/node": "~6.0.60",
...
"tslint": "~4.5.0",
"typescript": "^2.0.0"
}
}
納克--version:
@角/ CLI:1.0.0-rc.4 節點:7.7.3
我的錯誤:
錯誤:遇到的錯誤靜態解析符號值。不支持的表現形式..解決ode_modules符號的AppModule/@角/ CLI /藍圖/ NG /文件/ 路徑 /app/app.module.ts
我希望有人經歷了同樣的問題,可以幫助我。
Thx。