0
工作,我已经创建了下面的类。不幸的是与babel的传输我得到这个错误:私人道具不WeakMap
privateProps(this, { store: new _confidence2['default'].Store(_manifes
TypeError: object is not a function
任何想法是哪里的错误?
工作,我已经创建了下面的类。不幸的是与babel的传输我得到这个错误:私人道具不WeakMap
privateProps(this, { store: new _confidence2['default'].Store(_manifes
TypeError: object is not a function
任何想法是哪里的错误?
正如错误所述,privateProps
(一个WeakMap
实例)不是一个函数。
你大概的意思是:
privateProps.set(this, { store: new Confidence.Store(manifest) });
没错。我应该更好地检查WeakMap的使用 – Mazzy
'WeakMap'对象是无功能...你为什么*调用*'privateProps'? – Bergi