Nat*_*esh 5 linux ubuntu redux angular
当我要在 Linux(ubuntu)上编译或构建 Angular 应用程序时,我遇到了这个问题:
\n\n编译: ngserve
\n\n对于构建: ng build --base-href=/dist/
\n\n错误:
\n\n\n\n\nnode_modules/@angular-redux/store/lib/src/components/ng-redux.d.ts(10,31) 中出现错误:错误 TS2420:类“NgRedux”错误地实现了接口“ObservableStore”。属性\n“NgRedux”类型中缺少“[Symbol.observable]”,但类型“ObservableStore”中需要属性\n。
\n
上述 bash 命令在我的 Windows 环境中使用相同的应用程序运行良好,当我尝试在 Ubuntu 上运行或构建时,它给了我这个错误。这看起来像 redux 问题,我已经降级了 redux 版本\n但它确实\xe2\x80\x99t 对我有用,我也尝试了每一个组合,但这个问题在 Ubuntu 上没有解决。
\n\nLinux(Ubuntu)机器上的环境
\n\n节点版本: v8.10.0
\n\nNPM版本: 3.5.2
\n\nNG版本: 7.0.3
\n\nWindows机器上的环境
\n\n节点版本: v8.11.3
\n\nNPM版本: 5.6.0
\n\nNG版本: 7.0.3
\n我遇到了类似的问题,以下组合对我有用:
角度 cli v9.1.6、redux v4.0.1、角度 redux/store V9
所以也许这个?
npm install --save redux@4.0.1
npm install --save @angular-redux/store@^9