servicestack,Angular,servicestack" /> servicestack,Angular,servicestack" />

Angular 从1.0.46升级到1.0.47后出现角度(9)编译错误的ServiceStack

Angular 从1.0.46升级到1.0.47后出现角度(9)编译错误的ServiceStack,angular,servicestack,Angular,servicestack,在我们的package.json中,我们使用^声明包引用@servicestack/client。自上次将ServiceStack repo更新为新版本1.0.47以来,我们得到以下错误: ERROR in ./node_modules/@servicestack/client/dist/index.js Module not found: Error: Can't resolve 'fs' in 'MyProjectPath...\node_modules\@servicestack\clie

在我们的package.json中,我们使用
^
声明包引用
@servicestack/client
。自上次将ServiceStack repo更新为新版本
1.0.47
以来,我们得到以下错误:

ERROR in ./node_modules/@servicestack/client/dist/index.js
Module not found: Error: Can't resolve 'fs' in 'MyProjectPath...\node_modules\@servicestack\client\dist'
ERROR in ./node_modules/@servicestack/client/dist/index.js
Module not found: Error: Can't resolve 'path' in 'MyProjectPath...\node_modules\@servicestack\client\dist'

如果我们在
package.json
中定义了
@servicestack/client的版本:“1.0.46
构建运行良好

看起来Angular的AOT编译器仍然对运行时未运行的代码执行静态引用求值。v1.0.48通过使用动态分辨率来解决这一问题

现在可从npm上最新的
@servicestack/client
获取此信息

  "dependencies": {
    "@servicestack/client": "^1.0.48",
  },

谢谢。它现在可以与
1.0.48
一起使用。