0

The inversify docs say

The reflect-metadata polyfill should be imported only once in your entire application because the Reflect object is mean to be a global singleton. More details about this can be found here.

If your environment don't support one of these you will need to import a shim or polyfill

I'm using LTS node+express for my server. And latest angular for my client.

So I assume:

  • I don't need it for my server project, because LTS node doesn't need these shims
  • I don't need it for my client project, because angular bundles various shims automatically

Is that correct? When would that package be needed?

4

1 回答 1

0

事实证明,没有这个 polyfill,它在服务器上不起作用。似乎有必要让 inversify 工作,即使我使用的是最新的 LTS 节点。

于 2019-03-05T07:35:51.830 回答